views:

92

answers:

2

One team will analyze our .NET project(solution) code, so, before, they asked about how many lines of code contains our project.

Is there some statistical data, some code metrics in VS 2010?

+2  A: 

Yes

Here is a tutorial: http://blogs.msdn.com/b/habibh/archive/2009/10/27/how-to-count-the-lines-of-code-loc-in-your-application-using-visual-studio.aspx

Or you can use a dedicated tools like this one: http://code.msdn.microsoft.com/LOCCounter

Alois Cochard
this is about a project, or a *solution*?
serhio
first link: project, second link access directly to source code so you can count multiple solutions/projects
Alois Cochard
A: 

You can also use DPack:

DPack is a FREE collection of Microsoft Visual Studio 2008/2010 tools. DPack is designed to greatly increase developer's productivity, automate repetitive processes and expand upon some of Microsoft Visual Studio features.

DPack is very handy but you can use it only for solution statistics:

Solution statistics feature allows one to evaluate the size of the entire solution. It collects information on all projects in the currently opened solution. The information is collected on code files only and includes: total number of lines, total number of code lines, total number of comment lines and total number of empty lines in each project. Solution statistics can be exported to a comma delimited CSV file using Export button.

Nick Martyshchenko