[Bug]: Package downgrade and error messages #10126
Labels
Area:ErrorHandling
warnings and errors/log messages & related error codes.
Area:RestoreCPM
Central package management
Area:RestoreCPMTransitiveDependencies
Functionality:Restore
Priority:2
Issues for the current backlog.
Type:Bug
Hi, we've discovered recently that NuGet has native support for central package versioning CPVM. It is definitely a good step forward to simplify version management for large solutions, but it seems that there are some significant changes in how the restore errors are being reported.
Test solution
Let's assume that we have simple application with two library projects (SimpleAppWithLibs-Centralised.zip), e.g.:
Problem
When we try to run
dotnet restore
for such solution then we get following error messages:I appreciate the fact that by design restore operation works differently for CPVM enabled solutions compared to the non-CPVM case. My concern is that error reporting also works very differently, so for example error messages from above are repeated for each failed project. For large solutions containing hundreds of projects this can become very noisy.
Another issue is that one of the error messages suggests that
App
project has references to theNewtonsoft.Json
and to theNewtonsoft.Json.Bson
where actually it doesn't have any of these references. It is not clear from the error message that these are transitive references fromLib1
andLib2
.Can you please confirm whether this is desired error reporting behaviour for CPVM enabled solutions?
Version
5.0.100-rc.2.20479.15
The text was updated successfully, but these errors were encountered: