Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YuliiaKovalova opened this issue Jun 29, 2023 · 2 comments
Open

Comments

@YuliiaKovalova
Copy link
Member

YuliiaKovalova commented Jun 29, 2023

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

@YuliiaKovalova YuliiaKovalova changed the title dotnet new details dotnet new details template list is missed when -version is passed Jun 29, 2023
@maridematte maridematte removed their assignment Jul 3, 2023
@maridematte
Copy link
Contributor

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
Copy link
Member

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.

  • If --version matches the latest, it should be possible to show the list of templates from the search cache
  • if --version is not latest, there is no way to do that and template list should not be shown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants