Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find and remove redundant or unused code in Visual Studio 2008

I have been working on a huge VS 2008 (C#) project. Recently we have been restructoring a section of the solution to use domain driven design in an attempt to increase the quality of the code and architecture.

Everything has gone fine, however there will be a large amount of redundant code now nestled in the old business layer (cant remove the whole business layer as it is still used elsewhere). So my question is.... is there a (preferrably free) tool out there which I can use to discover a list of methods that are not called anywhere in a solution?

like image 447
Scott Avatar asked Mar 01 '23 06:03

Scott


1 Answers

See this article (by TrueWill) on detecting unused methods in C#:

Also, you might want to try FxCop or ReSharper.

like image 62
rajax Avatar answered Mar 06 '23 21:03

rajax