Summary
Analyzes managed code assemblies and reports information about the
assemblies, such as possible design, localization, performance, and
security improvements.
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Tasks - Base Types
-
- ExternalProgramBase
graph BT
Type-->Base0["ExternalProgramBase"]
Type["FxCopTask"]
class Type type-node
Syntax
[TaskName("fxcop")]
public class FxCopTask : ExternalProgramBase
Examples
<fxcop directOutputToConsole="true" projectFile="${build.dir}\Sample.fxcop">
<targets>
<include name="${build.dir}\bin\*.dll" />
</targets>
<rules>
<include name="${build.dir}\rules\*.dll" />
</rules>
</fxcop>
Remarks
Attributes
Type | Description |
---|---|
TaskName |
Constructors
Name | Summary |
---|---|
FxCopTask |
Creates a new NAnt.Contrib.Tasks.FxCopTask instance.
|
Properties
Name | Value | Summary |
---|---|---|
Analysis |
string |
Specifies the file name for the analysis report.
|
ApplyOutXsl | bool |
Applies the XSL transformation specified in /outXsl to the analysis report before saving the file.
|
BaseDirectory | DirectoryInfo |
The directory in which the command will be executed.
|
ConsoleXslFilename | string |
Specifies the XSL or XSLT file that contains a transformation to be applied to the analysis output before it is displayed in the console.
|
Dependency |
DirSet |
Specifies additional directories to search for assembly dependencies. FxCopCmd always searches the target assembly directory and the current working directory.
|
Direct |
bool |
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.
|
FailOnAnalysisError | bool |
Determines if the task should fail when analysis errors occur
|
ImportFiles | FileSet |
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 | bool |
Includes a summary report with the informational messages returned by FxCopCmd.
|
OutputXslFilename | string |
Specifies the XSL or XSLT file that is referenced by the xml-stylesheet processing instruction in the analysis report.
|
PlatformDirectory | string |
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.
|
ProgramArguments | string |
Gets the program arguments.
|
ProjectFile | string |
Specifies the filename of FxCop project file.
|
RuleLibraries | FileSet |
Specifies the filename(s) of FxCop project file(s).
|
SaveResults | bool |
Saves the results of the analysis in the project file.
|
TargetAssemblies | FileSet |
Specifies the target assembly to analyze.
|
TypeList | string |
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.
|
Methods
Name | Value | Summary |
---|---|---|
ExecuteTask |
void |
Executes the task.
|
PrepareProcess |
void |
Performs logic before the external process is started
|