I'm trying to find all unused references in my source files, like unused properties, methods and constants. I hope to incorporate this into my daily build. I do not use reflection in my project so this means that if a property has 0 references, I can safely remove it. The only clue I've got so far is that I need to write some macro to run DTE.ExecuteCommand("Edit.FindAllReferences") but how do I proceed from there? And is it possible to do all these without using a macro? Ideally it should run from a command line program. Thank you.
Asked
Active
Viewed 314 times
0
-
possibly the easiest way is buy a ReSharper license ;) – Mitch Wheat Jun 28 '09 at 05:17
1 Answers
-1
Take a look at this (Is there a custom FxCop rule that will detect unused PUBLIC methods?)

Community
- 1
- 1

Shay Erlichmen
- 31,691
- 7
- 68
- 87
-
Thanks. I think I'll try out NDepend. This is the first time I'm hearing about it. – janem Jun 28 '09 at 07:34