FxCop PropertiesMSBuild Extension Pack Help 4.0.12.0

The FxCop type exposes the following members.

Properties

  NameDescription
Public propertyAnalysisFailed
Gets AnalysisFailed. True if FxCop logged Code Analysis errors to the Output file.
Public propertyAspNetOnly
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 propertyAssemblyCompareMode
Set the assembly comparison mode. Supports None, StrongName, StrongNameIgnoringVersion. Default is StrongName.
Public propertyConsoleXsl
Sets the ConsoleXsl (/consoleXsl option)
Public propertyDependencyDirectories
Sets the DependencyDirectories :(/directory option)
Public propertyDictionary
Sets the custom dictionary used by spelling rules.Default is no custom dictionary
Public propertyExitCode
The exit code returned from FxCop
Public propertyFailOnMissingRules
Set to true to treat missing rules or rule sets as an error and halt execution. Default is false
Public propertyFiles
Sets the Item Collection of assemblies to analyse (/file option)
Public propertyForceOutput
Set to true to write output XML and project files even in the case where no violations occurred. Default is false
Public propertyFxCopPath
Sets the path to FxCopCmd.exe. Default is [Program Files]\Microsoft FxCop 1.36\FxCopCmd.exe
Public propertyIgnoreGeneratedCode
Set to true to suppress analysis results against generated code. Default is false
Public propertyIgnoreInvalidTargets
Set to true to silently ignore invalid target files. Default is false
Public propertyImports
Sets the name of an analysis report or project file to import (/import option)
Public propertyLogToConsole
Set to true to direct analysis output to the console (/console option). Default is true
Public propertyOutputFile
Set the name of the file for the analysis report
Public propertyOutputText
Gets the OutputText emitted during analysis
Public propertyOverrideRuleVisibilities
Set to true to run all overridable rules against all targets. Default is false
Public propertyProject
Set the name of the .fxcop project to use
Public propertyQuiet
Set to true to suppress all console output other than the reporting implied by /console or /consolexsl. Default is false
Public propertyReferences
Sets the Item Collection of assemblies to reference (/reference option)
Public propertyReportXsl
Sets the ReportXsl (/outXsl: option)
Public propertyRules
Sets the location of rule libraries to load (/rule option). Prefix the Rules path with ! to treat warnings as errors
Public propertyRuleset
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 propertyRulesetDirectory
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 propertySearchGac
Set to true to search the GAC for missing assembly references (/gac option). Default is false
Public propertyShowSummary
Set to true to display a summary (/summary option). Default is true
Public propertySuccessFile
Set to true to create .lastcodeanalysissucceeded file in output report directory if no build-breaking messages occur during analysis. Default is false
Public propertyTimeout
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 propertyTypes
Specifies the types to analyze
Public propertyUpdateProject
Saves the results of the analysis in the project file. This option is ignored if the /project option is not specified (/update option)
Public propertyVerbose
Set to true to output verbose information during analysis (/verbose option)
Top
See Also

Reference