FXC350201: Assembly should not contain problems which are detected with Microsoft FxCop

The assembly will be checked with Microsoft FxCop for potential problems (if the tool is installed).

TypeName: FxCopAnalysis
CheckId: FXC350201
Severity: Error
Type: AssemblyFileReference
Remarks

The rule will be executed if the tool FxCop is installed locally. If the tool will not be found the rule will throw an exception.

Important: Not all FxCop are applied. The analysis uses a subset of FxCop rules which are defined in file [SPCAFInstallation]/RuleSets/MSOCAF.ruleset. The file uses the same FxCop rules as MSOCAF (Microsoft SharePoint Online Code Analysis Framework) to provide similiar behaviour. You can override the used ruleset file by using the configuration parameter 'FxCopRuleSets' in the SPCAF ruleset file.

Rule Configuration
Name Description
FxCopExecutable Absolute or relative path to FxCop executable FxCopCmd.exe. By default SPCAF searches for FxCopCmd.exe at the typical installation locations of FxCop.
FxCopDirectories List of directories (separated by ';') in which FxCop searches for referenced assemblies.
FxCopRuleSets List of FxCop rule set files (separated by ';'). By default SPCAF uses the MSOCAF.ruleset to limit the number of applied rules to a recommended set for SharePoint.
Links

comments powered by Disqus