dotnet new results in exception "maximumNumberOfValues must be greater than or equal to minimumNumberOfValues" #5964
Labels
Iteration:2023February
need-customer-info
Requires feedback from author
size:4.0
triaged
The issue was evaluated by the triage team, placed on correct area, next action defined.
Product
dotnet CLI (dotnet new)
Describe The Bug
Using dotnet new on custom project template results in following error.
Full error below:
template.json:
projtemplate.csproj:
Commenting out the symbols node in the template.json prevents the error.
To Reproduce
Steps:
dotnet new webapi -n Sample.WebApi -o ./src/Sample.WebApi
dotnet new mstest -n Sample.WebApi.Test -o ./src/Sample.WebApi.Test
dotnet pack -c packRelease ./src
dotnet new install ./src/bin/packRelease/Sample.WebApi.1.0.0.nupkg
dotnet new SampleWebApi -n ThisProducesAnError -o ./test
dotnet Info
output
.NET SDK:
Version: 7.0.102
Commit: 4bbdd14480
Runtime Environment:
OS Name: debian
OS Version: 11
OS Platform: Linux
RID: debian.11-x64
Base Path: /usr/share/dotnet/sdk/7.0.102/
Host:
Version: 7.0.2
Architecture: x64
Commit: d037e070eb
.NET SDKs installed:
7.0.102 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.2 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Version
Using VS Code devContainer
Additional context
devcontainer.json
Dockerfile
The text was updated successfully, but these errors were encountered: