FxCop Runner

ID: fxcop-runner

FxCopCmd.exe execute plugin.


FxCopCmd.exe execute plugin.
Output xml can be used to Violations Plugin.


System configuration

  1. Open the system configuration page "Manage Jenkins->Configure system"
  2. Enter the path to the FxCop command line client, that should be used by Jenkins.
  • Example: C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe

Job configuration



FxCop Name

Select FxCop.

Assembly Files

Assembly file(s) to analyze.
You can specify multiple analyze assemblies by separating them with new-line or space.

Output XML

FxCop project or XML report output file.

RuleSet File

Rule set to be used for the analysis.


Suppress analysis results against generated code.


Write output XML and project files even in the case where no violations occurred.

Command Line Arguments

This is a whitespace separated list of command line arguments you can specify.

Fail build on test failure

Fail build on test failure

Common Problems

FxCopCmd.exe can produce several warnings, and when it does, the build will be marked as unstable. Look in your console output for the fxcop output.

Console output contains


There were non-critical errors loading FxCop project:

* Could not import all messages.
* End of project load errors.

This can happen if you are using an FxCop project file with some of the default settings.

NOTE: One or more referenced assemblies could not be found.
Use the '/directory' or '/reference' switch to specify additional assembly
reference search paths.

FxCop can't find the assemblies you reference. Two possible solutions:

  • add the /gac flag to FxCop
  • change the FxCopCmd.exe.config file to use a more forgiving assembly matching strategy
    • Open FxCopCmd.exe.config and change AssemblyReferenceResolveMode from StrongName to StrongNameIgnoringVersion
    • the location of FxCopCmd.exe.config depends on your installation, and may require administrator permission to edit

      See also: changing FxCopCmd.exe.config


Version 1.1 (02/28/2013)
  • add forceOutput field.
Version 1.0 (02/26/2013)
  • Initial release
ArchivesGet past versions
Version: 1.1
Requires Jenkins 1.466
Installs: 1,309
Help us improve this page!
This content is served from the Jenkins Wiki the read-only state. We recommend moving the plugin documentation to GitHub, see the guidelines.