Microsoft just release a PowerTools to enable Visual Studio 2010 code metrics analysis using a command line tool :
Visual Studio Code Metrics PowerTool 10.0
The result is stored in an XML file and is unfortunately not integrated to TFS for reporting or TeamBuild but it’s a start! After playing with this tool i’ll come back with a post on how to integrate it inside TeamBuild
Carpe Diem.