devMetrics Help Anticipating Minds

devMetrics Command Line

devMetrics can be run as a stand-alone command line program outside of Visual Studio® .NET. As a stand-alone program, devMetrics provides some additional features over the Add-in:

The devMetrics command line program is located in the program installation directory of devMetrics

[drive:\Program Files]\Anticipating Minds\devMetrics\devMetrics.exe

When run, devMetrics will traverse the folder structure starting from the folder provided and analyze all C# projects in this folder and its subfolders. At the completion of the analysis, Internet Explorer will be launched to display the project report. For more details on the reports, click here. Command line arguments provide additional control over the analysis and reporting and are covered in full below.

 

Command Line Arguments 

Folder
This is the folder with which to start locating .NET C# projects. devMetrics looks for projects with the extension “.csproj” in this folder and all subfolders. Once located, each project file is used to identify project C# files (“.cs”) to be included in the analysis. This parameter is required.
Examples:
devMetrics “E:\My Documents\Visual Studio Projects”
devMetrics .
Quiet
This option stops Internet Explorer from being launched making it possible to include devMetrics in scheduled batch processes where there may not be an interactive user present. When combined with the output option below, reports can be directed to different locations. This argument is optional.
Examples:
devMetrics /q “E:\My Documents\Visual Studio Projects”
devMetrics /quiet “E:\My Documents\Visual Studio Projects”
Output
This option allows you to direct output reports to any directory of your choice at runtime. By default the reports will be created in the following folder:
 
[drive:\Program Files]\Anticipating Minds\devMetrics\Reports
 
This location is configured in the registry. See the section on reports for more information regarding the configuration. If there is no configuration value for an output directory, the reports will be written to the temp directory. The output argument is optional.
Examples:
devMetrics /o:”F:\Inetpub\wwwroot\Build\Reports” “E:\My Documents\Visual Studio Projects”
devMetrics /output:“E:\My Documents\Visual Studio Project\Reports” “E:\My Documents\Visual Studio Projects”
Help
This option displays the command line usage. This argument is optional.
Examples:
devMetrics /?
devMetrics /help

More Command Line Examples

Automated build process with saved output in log file

  devMetrics /q /o:D:\Reports\20040321 F:\Build > D:\Reports\20040321\Analysis.log

Analyzing a single project and placing reports in the project directory

  devMetrics /o:“E:\My Documents\Visual Studio Projects\MySolution\MyProject” “E:\My Documents\Visual Studio Projects\MySolution\MyProject”

Directing reports to web server location for distributed access

  devMetrics /o:”F:\Inetpub\wwwroot\Build\Reports” “E:\My Documents\Visual Studio Projects”

 

See Also

Visual Studio .NET Add-in | Reports