You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenarios 1-4 are tracked in this request. For full list of scenarios please refer to #11915
Scenario #
PackageReference exists?
Directory.Packages.Props file exists?
Is ManagePackageVersionsCentrally property set to true?
Is VersionOverride?
Current behavior
New behavior in dotnet CLI
In Scope
1
❌
✔️
✔️ (in Directory.Packages.Props or .csproj file)
❌
Restore failed with NU1008 error and NO edits were made to the csproj file (same in VS and dotnet CLI)
PackageReference should be added to .(cs/vb)proj file and PackageVersion should be added to the closest Directory.Packages.Props file
✔️
2
❌
❌
✔️ in (cs/vb)proj file
❌
Restore failed with NU1008 error and NO edits were made to the csproj file (same in VS and dotnet CLI)
PackageReference and Version should be added to .(cs/vb)proj file.
✔️
3
❌
✔️
❌
❌
PackageReference and Version added to .(cs/vb)proj file.
In addition to the current behavior Directory.packages.props file should be deleted if it exists in the project folder
❌
4
✔️
✔️
✔️
❌
dotnet CLI - Restore failed with NU1008 error and NO edits were made to the csproj file. VS - Clicked on Update package in PM UI. New PackageVersion added to csproj file and Directory.packages.props file was not updated
No changes should be made to the Directory.Packages.Props file. Add VersionOverride attribute to the existing PackageReference item in .(cs/vb)proj file. If VersionOverride is already specified then the value should be updated.
NuGet Product(s) Involved
dotnet.exe
The Elevator Pitch
Scenarios 1-4 are tracked in this request. For full list of scenarios please refer to #11915
PackageReference
should be added to .(cs/vb)proj file andPackageVersion
should be added to the closestDirectory.Packages.Props
filePackageReference
andVersion
should be added to .(cs/vb)proj file.PackageReference
andVersion
added to .(cs/vb)proj file.Directory.packages.props
file should be deleted if it exists in the project folderPackageVersion
added to csproj file andDirectory.packages.props
file was not updatedDirectory.Packages.Props
file. AddVersionOverride
attribute to the existingPackageReference
item in .(cs/vb)proj file. IfVersionOverride
is already specified then the value should be updated.Additional Context and Details
No response
The text was updated successfully, but these errors were encountered: