Error when a PackageReference specified in a project is missing a version #13796
Labels
Category:BreakingChange
Functionality:Restore
Priority:2
Issues for the current backlog.
SeQuality
Type:DCR
Design Change Request
NuGet Product(s) Affected
NuGet.exe, MSBuild.exe, dotnet.exe
Current Behavior
Take a project like below:
Currently, at restore time, this leads to a restore happening, and a NU1604, and then whatever warnings resolving to the lowest available version may do.
In this case, loads of NU1701.
Note that NU1604 doesn't even say missing version, but missing lower bound, hence inconsistent restore.
I can't imagine there's any scenario where not adding a version to a PackageReference is wanted.
Desired Behavior
Elevate this to a warning.
NU1111: Missing version for NuGet.Commands
Additional Context
This is a warn change, so it needs to be hidden behind SDKAnalysisLevel.
The text was updated successfully, but these errors were encountered: