2

Possible Duplicate:
Find unused code

I am wanting to go through our solution and remove any unused code. I have several projects included in this solution and do not want to go one by one. I am using Visual Studio 10, .net 4.

Is there a tool that will tell me where all the unused methods are?

Community
  • 1
  • 1
Boone
  • 1,046
  • 1
  • 12
  • 30
  • 2
    http://stackoverflow.com/questions/245963/find-unused-code – Bolu Jan 07 '11 at 16:36
  • http://stackoverflow.com/questions/2020297/visual-studio-2008-c-how-to-find-dead-code-in-a-project – Tim Barrass Jan 07 '11 at 16:37
  • It looks like there is a long chain of duplicate questions ending in http://stackoverflow.com/q/65585/357812 –  Jan 08 '11 at 14:42

2 Answers2

3

Resharper will; unless you want a report generated. iirc FxCop will too.

EDIT: related question: Visual Studio 2008 / C# : How to find dead code in a project?

Community
  • 1
  • 1
Tim Barrass
  • 4,813
  • 2
  • 29
  • 55
0

I believe that Resharper has some features that can do that - I am not sure if VS2010 could on it's own.

Rion Williams
  • 74,820
  • 37
  • 200
  • 327