Delete all references that are not in use in Visual Studio?

Asked

Viewed 142 times

5

I wish to exclude all references (I am not talking about using in the class files) that are not being used. For this, of course, I need at least an effective way to find out which references are not in use.

Understand "references" as references of the Project.

See print:

Solution Explorer

There is a simple and automatic way to perform this task?

2 answers

3

To C# Visual Studio does not do this. You need some extension. O Resharper does and is a great option. But if you only want this feature and do not want to spend there is a extension.

  • Could explain how to identify these references with Resharper?

  • 1

    https://www.jetbrains.com/help/resharper/Refactorings__Remove_Unused_References.html

1

The Resolveur solves your problem if you do not choose to use Resharper.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.