Skip to content

Add affordances for quick fixing projects with NU1510 #14725

@nkolev92

Description

@nkolev92

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions