NCover Documentation
Docs  ›  Legacy  ›  Reference  ›  NCover 3.0  ›  NCover Console  ›  MSBuild

Please visit Covering MSTest for updated information.

NCover.Console MSBuild Options

NCover.Console provides numerous features for profiling applications, services, and IIS (ASP.NET) applications.

Output

Name Attribute Name Summary
Coverage XML CoverageFile Outputs Coverage data to a file other than the default.
Append Trends AppendTrendTo Appends trend data from the merged coverage files to the specified output path and filename.
HTML Report HtmlReportDir Outputs HTML to a directory. Requires Complete Edition.
Log File LogFile Logs to a file other than the default.
Log Level LogLevel Specify profiler log level.
Project Name ProjectName Specifies the name of the project for HTML output.

Profiling Options

Name Attribute Name Summary
Tool Path ToolPath The path to the NCover.Console.exe executable.
Test Runner Exe TestRunnerExe The test application to execute.
Test Runner Args TestRunnerArgs The command line arguments for the test application.
Exclude Attributes ExcludeAttributes Namespaces, classes and methods with an attribute that matches one of the regular expressions will be excluded from coverage.
Exclude Assemblies ExcludeAssemblies Exclude assemblies from coverage.
Exclude Files ExcludeFiles Excludes source files using a list of regular expressions.
Exclude Methods ExcludeMethods Excludes methods using a list of regular expressions.
Exclude Types ExcludeTypes Excludes types using a list of regular expressions..
Include Attributes IncludeAttributes Namespaces, Classes, and Methods with an attribute that matches one of the regular expressions will be included into coverage.
Include Assemblies IncludeAssemblies Selects which assemblies to cover.
Include File Paths IncludeFiles Source files whose path matches one of the regular expressions will be included into coverage.
Include Types IncludeTypes Namespaces and Classes whose fully-qualified name matches one of these regular expressions will be included into coverage.
Disable Autoexclusion IncludeAutoGenCode Includes compiler generated code in coverage.
Only Assemblies With Source OnlyAssembliesWithSource Only cover Assemblies with source information.
Process Name CoverChildProcess Cover only processes that match a particular name.
Cover All Processes CoverAll Makes NCover cover all processes that it starts either directly or indirectly.
Symbol Search Locations SymbolSearchLocations Tell NCover where to look for symbol (*.pdb) files.

Program Settings

Name Attribute Name Summary
Build Id BuildId Attaches a custom build id to the coverage data gathered.
Turn literal mode on. LiteralMode Turns off the automatic detection and fixing of common NCover configuration errors; forces NCover to interpret its configuration literally.
Register NCover RegisterProfiler Temporarily registers the NCover DLL.
Global Environment SetupGlobalEnvironment Configures NCover to cover child processes that could start as services or as regular applications.
Working Directory WorkingDirectory Set the working directory.
Wait for Application Load WaitForAppLoad Sets the maximum number of minutes NCover waits for the profiled process to connect before timing out.

Services

Name Attribute Name Summary
IIS ProfileService Allows coverage of IIS.
Service Timeout ServiceTimeout Sets maximum number of minutes NCover will let IIS or a Windows Service run before stopping them..
Windows Services ProfileService Allows coverage of a service.
Service Arguments ServiceArguments Adds startup arguments to the windows service argument list.

If you still need technical assistance, we can help:

Submit A Support Ticket