Tuesday, 8 February 2011

Exporting Code Metrics VS 2010

At last Microsoft released a Power-Tool to enable generating Visual Studio 2010 code metrics analysis using a command line.

the tool can be downloaded from here:

Visual Studio Code Metrics PowerTool 10.0

The output is stored into an XML file which is than can be processed to generate a nice visible report.

Next steps would be to create an xsl that can be used by various build servers (like cc.net).

and integrate this into the crap4Net tool so it can process that format.

This is going to be be useful.


Rajesh said...


Is there any way to export the code metrics xml to excel via TFS build options.

Lior Friedman: said...

Hi Rajesh,

I'm not that familiar with TFS and i don't know if there's a built in way to export this data. My guess will be that there isn't.

However, I'm sure you can use the command line power tool and add a step that will execute it as a shell command.

Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Walgreens Printable Coupons