Is there a quick way to determine whether you are using certain namespaces in your application. I want to remove all the unneccessary using statements like using System.Reflection and so on, but I need a way to determine if I am using those libraries or not. I know that the tool Resharper does this for you, but is there a quick and dirty and Free way to do this?
Asked
Active
Viewed 1,423 times
4 Answers
14
Visual Studio 2008 will also do this for you, right click in your class file and select "Organize Usings" -> "Remove and Sort".

Quintin Robinson
- 81,193
- 14
- 123
- 132
9
Visual Studio 2008 + PowerCommmands = Remove and Sort usings across a whole solution.

Anthony Mastrean
- 21,850
- 21
- 110
- 188
-
Yes I miss PowerCommands, I learned the hard way that PowerCommands and the MVC CTP5 don't play nice always. – Quintin Robinson Jan 23 '09 at 16:08
2
VS2008 can do this on a per-file basis.
Right-click the source code, select "Organize Usings", "Remove Unused Usings".

Timbo
- 27,472
- 11
- 50
- 75
2
I just noticed your vs2008 tag, but for those who don't have VS2008, you can get a similar feature in Resharper.

Brian Rasmussen
- 114,645
- 34
- 221
- 317