Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an easy way to find unused assembly references in my .NET project?

Possible Duplicate:
Tools for finding unused references

I inherited a brownfield project and am in the process of refactoring the code to support new requirements. The number of assembly references has grown considerably over time, and I would like to know if any references are no longer being used. What is the best approach to this other than dropping the reference and trying to re-compile the code.

like image 904
Jordan Parmer Avatar asked Oct 08 '09 16:10

Jordan Parmer


1 Answers

You can do this with Resharper by JetBrains.

Just right click on a reference, and choose "Find Dependent Code". It will search the project and tell you exactly what is referencing an assembly.

like image 62
Reed Copsey Avatar answered Sep 28 '22 16:09

Reed Copsey