FxCopStep
An FxCop build step is intended for inspecting .NET assemblies and reporting possible design, localization, performance, and security improvements.
Example. Runs FxCop for the specified assembly files and reports inspections results to the TeamCity server. The location of the FxCop installation on the agent is determined automatically.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
fxCop {
fxCopInstallation = auto {
version = FxCopStep.FxCopVersion.v16_0
}
inspectionSource = assemblies {
files = "build/*.dll"
}
}
Content copied to clipboard }
}
See also
Constructors
Types
Functions
Select to use the FxCop installation on an agent.
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Select to use a custom installation of FxCop (not the autodetected one), or if you do not have FxCop installed on the build agent (for example, you can place the FxCop tool in your source control, and check it out with the build sources).
Validates this object and reports found errors to the provided consumer
Properties
The path to the XSLT transformation file relative to the Build Checkout Directory or absolute on the agent machine. You can use the path to the detected FxCop on the target machine (i.e. %system.FxCopRoot%/Xml/FxCopReport.xsl). When the Report XSLT file option is set, the build runner will apply an XSLT transform to FxCop XML output and display the resulting HTML in a new FxCop tab on the build results page.