Is there an easy way to find the number of classes contained within a visual studio solution? Other than writing a funky find script, I couldn't find a way to do it within the code metrics piece of VS.
I am running Visual Studio 2008 and this is a VB.Net project through and through.
thanks!
You could use a free tool like SourceMonitor, which has a reasonable set of metrics including number of classes. You could also use a tool like NDepend which is a lot more powerful, but also costs money. Either can be integrated into your build environment if you're using MSBuild or NAnt.
Don't know a direct way but maybe this will help you:
Don't know if the Code Metrics Stuff is available in all Editions of VS. I'm using the Team Suite Edition.
Open the solution and search in all files " class " (with the white space before and after the word class). This will find all lines like:
public class A : B
The result should be something like
Matching lines: 2887 Matching files: 2271 Total files searched: 2486
The first number is the one you are searching for.
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