devMetrics is a free addin for VS7.1 (also has a commnad line interface) to generate basic code metrics of your projects.. http://www.anticipatingminds.com/Content/Products/devMetrics/devMetrics.aspx