BuildMaster Documentation

Running and Capturing FxCop Output

  • Last Modified: 2019-04-24

Pre-requisites:

FxCop is a free static code analysis tool from Microsoft that checks .NET managed code assemblies for conformance to Microsoft's .NET Framework Design Guidelines. While technically speaking FxCop is deprecated in favor of Roslyn Analyzers, many projects still depend on it for code quality.

BuildMaster can execute FxCop in a build or deploy plan, then capture the output from the report into a build report.

Example plan:

Exec "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Static Analysis Tools\FxCop\FxCopCmd.exe"
(
               Arguments: /out:report.xml 
);
 
Capture-FileReport
(
               Path: report.xml
);

Is this documentation incorrect or incomplete? Help us by contributing!

This documentation is licensed under CC-BY-SA-4.0 and stored in GitHub.