Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused references/nuget packages #36068

Closed
5 tasks
mikadumont opened this issue May 30, 2019 · 3 comments
Closed
5 tasks

Remove unused references/nuget packages #36068

mikadumont opened this issue May 30, 2019 · 3 comments
Labels
Area-IDE Feature Request Need Design Review The end user experience design needs to be reviewed and approved.
Milestone

Comments

@mikadumont
Copy link
Contributor

mikadumont commented May 30, 2019

User Scenario
Users should be able to

  • see unused assemblies, packages, and project references
  • remove unused references

Design

UX Model
The functionality should be available in the Solution Explorer. In an ideal case, we should grey out unused references directly in the Solution Explorer and add an option in the context menu to remove them. If this is not available e.g. due to performance reasons, please see the UX model below.

Here is the UX model in case if we cannot arrange this directly in the Solution Explorer:

  1. In the Solution Explorer right click on either a project, a solution or the References node of a project.

  2. Have 2 of the following options:
    A. Right-click the selection and choose an option to Remove Unused References in the context menu.
    B. Or a keyboard shortcut to Remove Unused References.

  3. When selecting Remove Unused References have a dialogue that displays all references that have no actual usages in source code in a tree view grouped by projects. By default, all references are selected for deletion. If necessary, deselect references that you want to keep.

nuget-package!

  1. Then select update to remove the unused references/nuget packages.
@gafter
Copy link
Member

gafter commented Jun 1, 2019

Please let the compiler team know if you want to do this, as it will likely require a compiler API or hidden diagnostics.

@vatsalyaagrawal vatsalyaagrawal added this to the 16.3 milestone Jun 7, 2019
@vatsalyaagrawal vatsalyaagrawal added the Need Design Review The end user experience design needs to be reviewed and approved. label Jun 7, 2019
@dpoeschl
Copy link
Contributor

dpoeschl commented Jul 1, 2019

Related: #6763

@jinujoseph
Copy link
Contributor

Closing as to be tracked here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Feature Request Need Design Review The end user experience design needs to be reviewed and approved.
Projects
None yet
Development

No branches or pull requests

5 participants