.NETFramework4.6.2net8.0
Microsoft.CodeCoverage package brings infra for collecting code coverage from vstest.console.exe and "dotnet test".
Published
Nov 10, 2026
12d ago
Total Downloads
2.0B
2,035,705,796
Install
dotnet add package Microsoft.CodeCoverage --version 18.7.1
| Product | Versions |
|---|---|
| .NET | |
| Other |
README
Microsoft.CodeCoverage
Code coverage infrastructure for the Visual Studio Test Platform. This package enables collecting code coverage data from vstest.console.exe and dotnet test.
Usage
This package is typically referenced indirectly through Microsoft.NET.Test.Sdk. For standalone usage:
<PackageReference Include="Microsoft.CodeCoverage" Version="x.y.z" />
Collect code coverage during a test run:
dotnet test --collect "Code Coverage"
Links
Changes from Previous Version
No structural changes between v18.7.0 and v18.7.1.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.