[CPM] Don't add Package versions when creating a new project if CPM is enabled #12967
Labels
Area:RestoreCPM
Central package management
Functionality:Restore
Priority:2
Issues for the current backlog.
Product:dotnet.exe
Product:VS.Client
Triage:Investigate
Type:DCR
Design Change Request
NuGet Product(s) Affected
Visual Studio, dotnet.exe
Current Behavior
When you create a new project with certain templates, PackageReferences are added by default. Even if CPM is enabled, the Package version is specified in the PackageReference which leads to a compile error.
Desired Behavior
If CPM is enabled, the package version should not be specified by default.
Additional Context
This allows a developer to create a new project and compile it without any initial errors.
The text was updated successfully, but these errors were encountered: