
Generate Statistics on Your C# Code #66
Chapter 7, Help and Research
|
263
HACK
progress of a code project, show what classes are undercommented, and
point out what classes and methods are exceedingly complex and in need of
refactoring.
Download and Install devMetrics
Before you can generate statistical reports on your code, you’ll first need to
download and install the devMetrics add-in, which is a free product from
Anticipating Minds (http://www.anticipatingminds.com) and is available at
http://www.anticipatingminds.com/Content/Products/devMetrics/devMetrics.
aspx. Download the devMetrics installer to your computer, and then
double-click the file to begin the installation process.
Once installed, devMetrics can be run in two ways:
From Visual Studio
To view the statistics for a C# Project through Visual Studio, open
Visual Studio and load the solution or project to analyze. Then, from
the Tools menu, choose the devMetrics submenu, and select the Ana-
lyze menu option, as shown in Figure 7-36. Once the project(s) have
been analyzed, the statistical report will be automatically displayed in
Visual Studio.
From the command line
To run the devMetrics analyzer from the command line, navigate to the
Program Files\Anticipating Minds\devMetrics directory and run the
devMetrics.exe executable, specifying the directory that contains the C#
Projects that you want to analyze, such as:
devMetrics "C:\My Projects\