Improve NU1004 when pruning is used with locked mode #14075
Labels
Area:RestoreRepeatableBuild
The lock file features
Functionality:Restore
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Type:Bug
Start with
dotnet restore --use-lock-file
<RestoreEnablePackagePruning>true</RestoreEnablePackagePruning>
dotnet restore --locked-mode
The missing package detection logic should be able to detect that a package was pruned, or at the minimum report that pruning has been enable and provide remediation.
Currently for a failure you can get something like:
We should be able to do something along the lines of
The text was updated successfully, but these errors were encountered: