Edit

NuGet Warning NU1603

'PackageA' 4.0.0 depends on 'PackageB' (>= 4.0.0) but 4.0.0 was not found. 5.0.0 was resolved instead.

Issue

A package dependency specified a version that could not be found. Typically, the package sources do not contain the expected lower bound version. A higher version was used instead, which differs from what the package was authored against. When doing a complete restore, NuGet goes online to check all sources instead of using the packages that already exist in the user package folder.

Solution

If the package expected has not been released, this may be a package authoring error. Contact the package author to resolve the issue. If the package has been released, check that it's available on the package sources you're using. If using a private source, you may need to update the package on that feed.