The C# IDE lets you easily clean up your .cs files’ using sections by right-clicking in the editor and selecting “Remove and Sort Usings”. Unfortunately, there is no such command for removing unnecessary assembly references from a project.
Searching SO brought up some answers regarding free tools implementing this operation, and the Visual Studio Gallery website contains at least 3 VS Extensions that provide this functionality:
Judging from the reviews pages of each product, all of them seem to share the problem that sometimes they remove assemblies even though they are required for compilation.
(This problem may occur if code in assembly 1 calls assembly 2 which returns an object defined in assembly 3, but assembly 3 is not referenced by assembly 1.)
Reference Assistant has a preview of the remove operation (screenshot), but I am not sure about the other products.
What is your preferred tool for this operation?
I tried three of them and and it seems that Muse.VSExtensions is much faster
Pingback: Remove Unused References with Visual Studio 2013 | devioblog
Pingback: Remove Unused References with Visual Studio 2017 | devioblog