1

VS.NET 2010's Code Metric window provides line count, it doesn't show a sum of all projects in the window. When you export to Excel it lists all sub classes again therefore it's not possible to calculate the total line of code in the solution.

If you have 1-5 projects it's no problem but if you have more than 30 then it's really too much to do.

Has anyone figured out a way to do this? I don't want to install a separate tool for this as there should be an easy way to get this out of Code Metrics window.

1
  • submit a bug report or feature request to Microsoft Connect, and see how the developers respond, connect.microsoft.com Commented Mar 13, 2011 at 10:19

2 Answers 2

1

You can use filtering feature in Excel to filter out only row with Scope = 'Namespace'. Then you can just select all rows in the line count column and the sum appears in the progress bar.

Sign up to request clarification or add additional context in comments.

Comments

0

Well you may have a look at How do you count the lines of code in a Visual Studio solution?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.