We have a product with ~15 solutions with each a number of projects.
The question is quite simple: Which tool will enable us to search the entire codebase for dead code?
Searching within a single solution is easy enough (Lots of answers on SO for that one).
But what about determining if "public void Foo()" in project AlphaProj of solution AlphaSol ,which is not used within AlphaSol itself, is actually used in e.g. BetaSol ?
Although you have 15 solutions nothing stops you from creating another solution that will have all the projects referenced, let's say All.sln. So whenever you need to find external references you open this All.sln solution and look for the references.
We probably have about 100 solutions, and one All.sln that references all the projects from those solutions. It is easy to add all the projects from one solution to All.sln: you just select Add Existing Projects
and select one of those 15 solution files. You need adjust file type in Add Existing Projects
dialog to be able to select solution file. Also, to keep this big solution organized, you can use solution folders.
You might also want to checkout NDepend.
Since the other answer is quiet sufficient for your immediate need, and I don't want to sound like a bad commercial, I leave it to the interested reader to find out more about that tool.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With