[Bug]: Package version downgrade is not detected due to invalid transitive pinning #11760
Labels
Area:ErrorHandling
warnings and errors/log messages & related error codes.
Area:RestoreCPM
Central package management
Functionality:Restore
Priority:2
Issues for the current backlog.
Product:dotnet.exe
Type:Bug
Milestone
NuGet Product Used
dotnet.exe
Product Version
7.0.100-preview.3.22179.4
Worked before?
no
Impact
It bothers me. A fix would be nice
Repro Steps & Context
There are some correctness issues when restoring packages for a solution in which projects specify different versions using CPVM and transitive pinning
As in the attached example, the
App
project specifies a lower version of a dependency than theLib1
and theLib2
projects. However, the restore operation is still successful and no version downgrades are being reported.Solution.sln:
Output of dotnet restore:
Output of dotnet list package:
App:
Directory.Packages.props (App):
Lib1:
Directory.Packages.props (Lib1):
Lib2:
Attachements:
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: