views:

64

answers:

2

for metrics reasons I need to know how many lines of code my class library has. I'm doing this for code coverage....

So if Class library 1 has 50 lines of code and 100% coverage And if Class library 2 has 500 lines of code and 0% coverage

My total coverage is 90%

Any idea how to do this? Is there a utility or a way to use Visual Studio?

A: 

Run nCover using the Testdriven.net plugin. It will show you the coveragde %

http://www.testdriven.net/

Ivo
Does it support silverlight?
zachary
+1  A: 

Which VS version and edition do you have? It's built into 2008 Team Developer and 2010 Premium and Ultimate under Analyze->Calculate Code Metrics.

John Bowen
Very cool. Thanks!
zachary