NCoverExplorer.MSBuildTasks

NCover Members

NCover overview

Public Instance Constructors

NCover Constructor Initializes a new instance of the NCover class.

Public Instance Properties

Assemblies Used to specify the assemblies to be profiled. Alternative to the AssemblyList property, where instead you wat the list to be dynamically built using an itemgroup, for instance to match all assemblies against a wildcard. The NCover task will take care of stripping off the suffixes etc.
AssemblyList Alternative to specifying assembly names - you can instead list them as you would on the command line as a semi-colon delimited list without any suffixes or paths.
CommandLineArgs The arguments to pass to the command line executable to be launched by NCover (such as nunit-console.exe).
CommandLineExe The command line executable to be launched by NCover (such as nunit-console.exe).
CoverageFile The filename for the output coverage.xml file (default).
ExcludeAttributes If coverage exclusion attributes have been applied (NCover 1.5.4 onwards) specify the full namespace to the attribute including the "Attribute" suffix - e.g. "CoverageExcludeAttribute" if defined in no namespace. Separate multiple attributes with semi-colons.
LogFile Gets or sets the logfile name to write to if logLevel is set to anything other than "Quiet". The default is "coverage.log".
LogLevel What level of NCover logging to provide. Values are "Normal" (default) and "Verbose". Due to a bug in NCover 1.5.4 "Quiet" will result in NCover stopping abnormally - hence has been defaulted to be "Normal" until the bug is fixed.
ProfiledProcessModule Gets or sets the profiled process module name. Use this argument when the executable being launched is not the actual process you want to profile coverage for.
ProfileIIS Determines whether to profile under IIS. Default value is false.
ProfileService The service name if profiling a windows service.
RegisterProfiler Determines whether to register NCover CoverLib.dll on each run. The default is true. You would set this to false if using TypeMock due to a conflict in registered profilers. If set to true, the NCover task uses a reference counting approach to minimise the chance of issues when simultaneous builds.
WorkingDirectory Gets or sets the working directory for the command line executable.
XmlFormat Gets or sets a value indicating the xml output format to write (new in NCover 1.5.7). Default value is "Xml1", alternat option is "Xml2" which nests method nodes within class nodes. Note however that "Xml2" is for future use and is not yet supported by NCoverExplorer as of version 1.3.6.

Public Instance Methods

Execute Executes the task.

See Also

NCover Class | NCoverExplorer.MSBuildTasks Namespace