Tuesday, February 10, 2015

Calculating Lines of Code in a Visual Studio Solution

In older versions of Visual Studio (prior to Visual Studio 2010), you had to resort to custom tools in order to get "Lines of Code" for any of your development and reporting metrics.

Fortunately, with the release of Code Metrics, you can now easily get the number of Lines of Code in each of your projects in a Visual Studio solution. 

With the release of Visual Studio 2010, this was restricted to only developers with access to Visual Studio 2010 Ultimate edition, making this out of the reach of a large number of the developers in the world.

Fortunately, with the release of Visual Studio 2013, Code Metrics is included even with the Professional Edition!!

In order to obtain Code Metrics for your Visual Studio Solution, simply right click on your Visual Studio Solution and select "Calculate Code Metrics":

Once you select that menu option, you will get a set of Code Metrics Results similar to the following:

That is all there is to it!!

No comments:

Post a Comment