dotnet / templating

This repo contains the Template Engine which is used by dotnet new
https://docs.microsoft.com/dotnet/
MIT License
1.64k stars 369 forks source link

dotnet new details template list is missed when -version is passed #6811

Open YuliiaKovalova opened 1 year ago

YuliiaKovalova commented 1 year ago

Product

dotnet CLI (dotnet new)

Describe The Bug

Running the command with the version specified doesn't display the list of templates: dotnet new details NUnit3.DotNetNew.Template -version "1.7.0" NUnit3.DotNetNew.Template 1.7.0 | NuGet Package Explorer image

To Reproduce

Steps:

  1. run dotnet new details NUnit3.DotNetNew.Template -version "1.7.0"
  2. Observe the output No list of templates is available in the output.

dotnet Info

.net 8 preview 7

maridematte commented 1 year ago

On an offline discussion we agreed that we are not doing at this moment, as it is a big change on the Template Engine and how the cache works. I'll be disabling the --version option for the command while this is not implemented.

vlada-shubina commented 1 year ago

For the case of not installed package: since we retrieve list of templates from the search cache, we can do it only for the latest version.