What tools and techniques do you use to find dead code?

Scott Lawrence picture Scott Lawrence · Oct 2, 2008 · Viewed 15.9k times · Source

What tools and techniques do you use to find dead code in .NET?

In the past, I've decorated methods with the Obsolete attribute (passing true so the compiler will issue an error, as described in MSDN).

I'd be interested in seeing the suggestions of others (beyond tools like FxCop or ReSharper). I want to make sure I'm not missing out on other tools that would be helpful.

Answer

Quibblesome picture Quibblesome · Oct 2, 2008

Why do you need other answers? FxCop and Resharper do the trick, especially seeing as FxCop is now integrated into VS through "Code Analysis".