-
Notifications
You must be signed in to change notification settings - Fork 266
Open
Labels
Area:ErrorHandlingwarnings and errors/log messages & related error codes.warnings and errors/log messages & related error codes.Area:PackagePruningIssues related to package pruningIssues related to package pruningFunctionality:InstallThe install command in VS/nuget.exeThe install command in VS/nuget.exePriority:2Issues for the current backlog.Issues for the current backlog.Type:Feature
Description
NU1510 is raised for packages that unnecessary in the project and that should be removed.
Data shows that up to 3% of pruning projects actually get warning, but don't really address despite the solution being extremely simple.
Note that given that these packages are privatized by automatically setting PrivateAssets=all and IncludeAssets=none, it's pretty much guaranteed to not have any side-effects. https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#how-prunepackagereference-works
Some ideas here:
- PM UI visualization (example, grey out)
- Copilot fixer in error list
- Prevent installing packages that raise NU1510 warningss
Metadata
Metadata
Assignees
Labels
Area:ErrorHandlingwarnings and errors/log messages & related error codes.warnings and errors/log messages & related error codes.Area:PackagePruningIssues related to package pruningIssues related to package pruningFunctionality:InstallThe install command in VS/nuget.exeThe install command in VS/nuget.exePriority:2Issues for the current backlog.Issues for the current backlog.Type:Feature