FxCop Properties | MSBuild Extension Pack Help 4.0.12.0 |
The FxCop type exposes the following members.
Properties
Name | Description | |
---|---|---|
AnalysisFailed |
Gets AnalysisFailed. True if FxCop logged Code Analysis errors to the Output file.
|
|
AspNetOnly |
Set to true to analyze only ASP.NET-generated binaries and honor global suppressions in App_Code.dll for all assemblies under analysis. Default is false
|
|
AssemblyCompareMode |
Set the assembly comparison mode. Supports None, StrongName, StrongNameIgnoringVersion. Default is StrongName.
|
|
ConsoleXsl |
Sets the ConsoleXsl (/consoleXsl option)
|
|
DependencyDirectories |
Sets the DependencyDirectories :(/directory option)
|
|
Dictionary |
Sets the custom dictionary used by spelling rules.Default is no custom dictionary
|
|
ExitCode |
The exit code returned from FxCop
|
|
FailOnMissingRules |
Set to true to treat missing rules or rule sets as an error and halt execution. Default is false
|
|
Files |
Sets the Item Collection of assemblies to analyse (/file option)
|
|
ForceOutput |
Set to true to write output XML and project files even in the case where no violations occurred. Default is false
|
|
FxCopPath |
Sets the path to FxCopCmd.exe. Default is [Program Files]\Microsoft FxCop 1.36\FxCopCmd.exe
|
|
IgnoreGeneratedCode |
Set to true to suppress analysis results against generated code. Default is false
|
|
IgnoreInvalidTargets |
Set to true to silently ignore invalid target files. Default is false
|
|
Imports |
Sets the name of an analysis report or project file to import (/import option)
|
|
LogToConsole |
Set to true to direct analysis output to the console (/console option). Default is true
|
|
OutputFile |
Set the name of the file for the analysis report
|
|
OutputText |
Gets the OutputText emitted during analysis
|
|
OverrideRuleVisibilities |
Set to true to run all overridable rules against all targets. Default is false
|
|
Project |
Set the name of the .fxcop project to use
|
|
Quiet |
Set to true to suppress all console output other than the reporting implied by /console or /consolexsl. Default is false
|
|
References |
Sets the Item Collection of assemblies to reference (/reference option)
|
|
ReportXsl |
Sets the ReportXsl (/outXsl: option)
|
|
Rules |
Sets the location of rule libraries to load (/rule option). Prefix the Rules path with ! to treat warnings as errors
|
|
Ruleset |
Specifies the Rule set to be used for the analysis. It can be a file path to the rule set file or the file name of
a built-in rule set. '+' enables all rules in the rule set; '-' disables all rules in the rule set; '=' sets rules
to match the rule set and disables all rules that are not enabled in the rule set
|
|
RulesetDirectory |
Specifies the directory to search for rule set files that are specified by the Ruleset switch or are included by one of the specified rule sets.
|
|
SearchGac |
Set to true to search the GAC for missing assembly references (/gac option). Default is false
|
|
ShowSummary |
Set to true to display a summary (/summary option). Default is true
|
|
SuccessFile |
Set to true to create .lastcodeanalysissucceeded file in output report directory if no build-breaking messages occur during analysis. Default is false
|
|
Timeout |
Set the override timeout for analysis deadlock detection. Analysis will be aborted when analysis of a single item by a single rule exceeds the specified amount of time. Default is 0 to disable deadlock detection.
|
|
Types |
Specifies the types to analyze
|
|
UpdateProject |
Saves the results of the analysis in the project file. This option is ignored if the /project option is not specified (/update option)
|
|
Verbose |
Set to true to output verbose information during analysis (/verbose option)
|
See Also