improve update operation when both PackageReference
and packages.config
are present
#10394
Labels
L: dotnet:nuget
NuGet packages via nuget or dotnet
Some repos found in the wild reference packages via both
<PackageReference>
elements andpackages.config
. In this scenario, the updater sees apackages.config
scenario and only goes down that path. The end result can be that we mistakenly add a reference topackages.config
when we really should have updated a<PackageReference
element, instead.The proper behavior should be: if
packages.config
is present AND THAT FILE CONTAINS THE REFERENCE, then update with NuGet CLI; otherwise attempt an SDK package upgrade.The text was updated successfully, but these errors were encountered: