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.
views:
82answers:
1
A:
Take a look at this (Is there a custom FxCop rule that will detect unused PUBLIC methods?)
Shay Erlichmen
2009-06-28 06:12:36
Thanks. I think I'll try out NDepend. This is the first time I'm hearing about it.
janem
2009-06-28 07:34:51