CPM - Updating GlobalPackageReference
adds PackageVersion
and PackageReference
references to .csproj
#13337
Labels
Area:RestoreCPM
Central package management
Functionality:Restore
Priority:2
Issues for the current backlog.
Type:Bug
NuGet Product Used
Visual Studio Package Management UI
Product Version
VS 17.9.4
Worked before?
No response
Impact
It's more difficult to complete my work
Repro Steps & Context
Reproduction steps
GlobalPackageReference
entry to theDirectory.Packages.props
file.Example:
Roslynator.Analyzers
package to4.12.0
through VS..csproj
fileWorkaround
As a workaround, instead of using
GlobalPackageReference
it's possible to simply use aPackageReference
, which works correctly with the Visual Studio Package Management UI.The problem with this workaround is that when trying to add nuget packages via the CLI, an error will be shown due to this check: https://github.com/NuGet/NuGet.Client/blob/5789cc8f9cf67f421000af06040b0f73aa9ae2d9/src/NuGet.Core/NuGet.CommandLine.XPlat/Utility/MSBuildAPIUtility.cs#L187-L192
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: