dotnet / dotnet/templating

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

Open
#6,811 2 comments 0 reactions 0 assignees View on GitHub
triage:transfer-to-sdk
Dominant language
No language data
Stars
1.7k
Forks
399
Avg merge
3d 5h
Merged PRs (30d)
39

Description

### 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](https://nuget.info/packages/NUnit3.DotNetNew.Template/1.7.0)
![image](https://github.com/dotnet/templating/assets/95473390/72b5eb8b-2686-461a-bc1c-21610bd1b5d8)

### 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.