FxCop Properties

MSBuild Extension Pack

FxCop Properties MSBuild Extension Pack Help 4.0.12.0

The FxCop type exposes the following members.

Properties

  Name Description
Public property AnalysisFailed
Gets AnalysisFailed. True if FxCop logged Code Analysis errors to the Output file.
Public property 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
Public property AssemblyCompareMode
Set the assembly comparison mode. Supports None, StrongName, StrongNameIgnoringVersion. Default is StrongName.
Public property ConsoleXsl
Sets the ConsoleXsl (/consoleXsl option)
Public property DependencyDirectories
Sets the DependencyDirectories :(/directory option)
Public property Dictionary
Sets the custom dictionary used by spelling rules.Default is no custom dictionary
Public property ExitCode
The exit code returned from FxCop
Public property FailOnMissingRules
Set to true to treat missing rules or rule sets as an error and halt execution. Default is false
Public property Files
Sets the Item Collection of assemblies to analyse (/file option)
Public property ForceOutput
Set to true to write output XML and project files even in the case where no violations occurred. Default is false
Public property FxCopPath
Sets the path to FxCopCmd.exe. Default is [Program Files]\Microsoft FxCop 1.36\FxCopCmd.exe
Public property IgnoreGeneratedCode
Set to true to suppress analysis results against generated code. Default is false
Public property IgnoreInvalidTargets
Set to true to silently ignore invalid target files. Default is false
Public property Imports
Sets the name of an analysis report or project file to import (/import option)
Public property LogToConsole
Set to true to direct analysis output to the console (/console option). Default is true
Public property OutputFile
Set the name of the file for the analysis report
Public property OutputText
Gets the OutputText emitted during analysis
Public property OverrideRuleVisibilities
Set to true to run all overridable rules against all targets. Default is false
Public property Project
Set the name of the .fxcop project to use
Public property Quiet
Set to true to suppress all console output other than the reporting implied by /console or /consolexsl. Default is false
Public property References
Sets the Item Collection of assemblies to reference (/reference option)
Public property ReportXsl
Sets the ReportXsl (/outXsl: option)
Public property Rules
Sets the location of rule libraries to load (/rule option). Prefix the Rules path with ! to treat warnings as errors
Public property 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
Public property 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.
Public property SearchGac
Set to true to search the GAC for missing assembly references (/gac option). Default is false
Public property ShowSummary
Set to true to display a summary (/summary option). Default is true
Public property SuccessFile
Set to true to create .lastcodeanalysissucceeded file in output report directory if no build-breaking messages occur during analysis. Default is false
Public property 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.
Public property Types
Specifies the types to analyze
Public property UpdateProject
Saves the results of the analysis in the project file. This option is ignored if the /project option is not specified (/update option)
Public property Verbose
Set to true to output verbose information during analysis (/verbose option)
Top
See Also

Reference