Uses FxCop to analyse managed code assemblies and reports on their design best-practice compliance.
The following tables list the members exposed by FxCop.
Public Constructors
Public Properties
Name | Description | |
---|---|---|
AnalysisReportFileName | Specifies the file name for the analysis report. | |
ApplyOutXsl | Applies the XSL transformation specified in /outXsl to the analysis report before saving the file. | |
BuildEngine | Gets or sets the instance of the |
|
ConsoleXslFileName | Specifies the XSL or XSLT file that contains a transformation to be applied to the analysis output before it is displayed in the console. | |
DependencyDirectories | Specifies additional directories to search for assembly dependencies. FxCopCmd always searches the target assembly directory and the current working directory. | |
DirectOutputToConsole | Directs analysis output to the console or to the Output window in Visual Studio .NET. By default, the XSL file FxCopConsoleOutput.xsl is applied to the output before it is displayed. | |
ExitCode | Gets the returned exit code of the executable file. (inherited from ToolTask) | |
FailOnError | Gets or sets a value indicating whether the build should fail if static code analysis reports errors. Defaults to . |
|
HostObject | Gets or sets the host object associated with the task. (inherited from Task) | |
ImportFiles | Specifies the name of an analysis report or project file to import. Any messages in the imported file that are marked as excluded are not included in the analysis results. | |
IncludeSummaryReport | Includes a summary report with the informational messages returned by FxCopCmd. | |
Log | Gets an instance of a |
|
OutputXslFileName | Specifies the XSL or XSLT file that is referenced by the xml-stylesheet processing instruction in the analysis report. | |
PlatformDirectory | Specifies the location of the version of Mscorlib.dll that was used when building the target assemblies if this version is not installed on the computer running FxCopCmd. | |
ProjectFile | Specifies the filename of FxCop project file. | |
RuleLibraries | Specifies the filename(s) of FxCop rule assemblies | |
Rules | The list of rules to run | |
SaveResults | Saves the results of the analysis in the project file. | |
TargetAssemblies | Specifies the target assembly to analyze. | |
Timeout | Gets or sets the amount of time after which the task executable is terminated. (inherited from ToolTask) | |
ToolPath | Gets or sets the path of the executable file to run. (inherited from ToolTask) | |
TypeList | Comma-separated list of type names to analyze. This option disables analysis of assemblies, namespaces, and resources; only the specified types and their members are included in the analysis. Use the wildcard character '*' at the end of the name to select multiple types. | |
Verbose | Gets or sets a value indicating whether the output is verbose. | |
WorkingDirectory | Gets or sets the working directory. |
Protected Properties
Name | Description | |
---|---|---|
EnvironmentOverride | Gets the override value of the PATH environment variable. (inherited from ToolTask) | |
HelpKeywordPrefix | Gets or sets the prefix used to compose Help keywords from resource names. (inherited from Task) | |
ResponseFileEncoding | Gets the |
|
StandardErrorEncoding | Gets the |
|
StandardErrorLoggingImportance | Gets the |
|
StandardOutputEncoding | Gets the |
|
StandardOutputLoggingImportance | Gets the |
|
TaskResources | Gets or sets the culture-specific resources associated with the task. (inherited from Task) | |
ToolName | Overidden. Gets the name of the executable file to run. |
Public Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified |
|
Execute | Overidden. Executes the task. | |
GetHashCode | Serves as a hash function for a particular type. |
|
GetType | Gets the |
|
ToString | Returns a |
Protected Methods
Name | Description | |
---|---|---|
CallHostObjectToExecute | Calls the host object to perform the work of the task. (inherited from ToolTask) | |
ExecuteTool | Creates a temporoary response (.rsp) file and runs the executable file. (inherited from ToolTask) | |
Finalize | Allows an |
|
GenerateCommandLineCommands | Overidden. Returns a string value containing the command line arguments to pass directly to the executable file. | |
GenerateFullPathToTool | Overidden. Returns the fully qualified path to the executable file. | |
GenerateResponseFileCommands | Returns a string value containing the command line arguments to add to the response (.rsp) file before running the executable file. (inherited from ToolTask) | |
GetResponseFileSwitch | Returns the command line switch used by the executable file to specifiy a response (.rsp) file. (inherited from ToolTask) | |
GetWorkingDirectory | Overidden. Returns the directory in which to run the executable file. | |
HandleTaskExecutionErrors | Handles execution errors raised by the executable file. (inherited from ToolTask) | |
InitializeHostObject | Initializes the host object of the task. (inherited from ToolTask) | |
LogEventsFromTextOutput | (inherited from ToolTask) | |
LogPathToTool | Logs the tool name and path to all registered loggers. (inherited from ToolTask) | |
LogToolCommand | Logs the starting point of the run to all registered loggers. (inherited from ToolTask) | |
MemberwiseClone | Creates a shallow copy of the current |
|
SkipTaskExecution | Indicates whether task execution should be skipped. (inherited from ToolTask) | |
ValidateParameters | Overidden. Indicates whether all task paratmeters are valid. |
See Also
Documentation version 1.0.0.0.