NDepend.API Documentation
AddCoverageFile Method
NDepend.Project Namespace > IProjectCoverage Interface : AddCoverageFile Method
The coverage file path to add.
Adds the coverage file path.
Syntax
bool AddCoverageFile( 
   IFilePath coverageFilePath
)

Parameters

coverageFilePath
The coverage file path to add.

Return Value

Returns true only if the path is correctly added.
When adding a duplicate path, the method does nothing and returns false.
Remarks
The list can't contains duplicate path. If the path is added, the event IProject.IProject.SettingsChanged is triggered with the flag ProjectSettings.ProjectSettings.Coverage_Settings activated.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IProjectCoverage Interface
IProjectCoverage Members