Using FxCopCmd
FxCopCmd is the command-line companion to the FxCop application. Like the application, FxCopCmd analyzes managed code assemblies and reports information about the assemblies, such as possible design, localization, performance, and security improvements. FxCopCmd can be used as a stand-alone tool, added to automated build processes, or integrated with Microsoft Visual Studio .NET as an external tool.
If you are starting a new software development effort, or are adding FxCop to an existing development effort, start by creating a project to store settings for the analysis using the FxCop application. FxCopCmd does not support creating or configuring projects. An FxCop project specifies the set of assemblies to be analyzed, the rules used to analyze the assemblies, and the most recent analysis results reported by FxCop. Although individual types and rules can be directly specified with the FxCopCmd's command-line options, an FxCop project is easier to use. After a project has been created and saved, you can run the analysis it describes by using the application or the command–line tool.
For a quick introduction to FxCopCmd, see Quick Start Guide to FxCopCmd. For a complete description of the FxCop application's user interface and features, see Using FxCop.
In This Section
- Command-Line Tool Options
Describes the command-line options supported by FxCopCmd.
- Analysis Reports
Discusses the analysis reports sent to the console window or an XML file.
- FxCopCmd Errors
Provides information about the errors that can occur while loading or analyzing targets.
- Adding FxCopCmd to Your Build Process
Explains how to add FxCopCmd to a build script.
- Visual Studio Integration of FxCop
Discusses integrating FxCopCmd with Visual Studio.