Microsoft.CodeCoverage 18.10.1

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"

Published tests

dotnet publish places the collector, tools, and their private dependencies in the Microsoft.CodeCoverage subdirectory. Deploy the entire publish directory. VSTest's data collector host searches the test assembly's directory and its subdirectories, so it discovers the collector without a project or NuGet cache:

dotnet vstest publish/Tests.dll --collect:"Code Coverage"

For runners that require an explicit extension path, pass --TestAdapterPath:publish/Microsoft.CodeCoverage. Normal dotnet test runs continue to use the collector from the package directory.

When upgrading from a package that copied coverage files into the publish root, delete the old publish directory before publishing again. Old private dependencies in that directory cannot safely be distinguished from application files.

Showing the top 20 packages that depend on Microsoft.CodeCoverage.

Packages Downloads
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
1,219
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
1,082
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
1,056
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
1,047
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
1,046
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
1,044
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
1,043
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
1,039
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
1,036
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
57
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
50
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
48
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
47
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
46
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
45
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
44

This package has no dependencies.

Version Downloads Last updated
18.10.1 7 09/17/2026
18.10.0 9 09/09/2026
18.9.0 58 08/14/2026
18.8.1 20 07/15/2026
18.8.0 19 07/15/2026
18.7.0 19 06/23/2026
18.6.0 29 05/28/2026
18.5.1 38 04/28/2026
18.5.0 1,233 04/24/2026
18.4.0 47 04/08/2026
18.3.0 44 02/27/2026
18.0.1 68 12/10/2025
18.0.0 43 12/10/2025
17.14.1 1,107 12/10/2025
17.14.0 51 12/13/2025
17.14.0-preview-25107-01 34 12/19/2025
17.13.0 1,052 12/10/2025
17.12.0 1,058 12/10/2025
17.11.1 1,040 12/10/2025
17.11.0 45 12/20/2025
17.11.0-release-24373-02 46 12/13/2025
17.11.0-release-24352-06 34 12/14/2025
17.10.0 1,042 12/10/2025
17.10.0-release-24177-07 36 12/10/2025
17.10.0-preview-24080-01 31 12/20/2025
17.9.0 1,053 12/10/2025
17.9.0-release-23619-01 39 12/20/2025
17.9.0-preview-23577-04 46 12/10/2025
17.9.0-preview-23531-01 41 12/13/2025
17.9.0-preview-23503-02 37 12/13/2025
17.8.0 1,063 12/10/2025
17.8.0-release-23468-02 39 12/10/2025
17.8.0-preview-23424-02 31 12/20/2025
17.8.0-preview-23371-04 37 12/10/2025
17.7.2 43 12/15/2025
17.7.1 33 12/12/2025
17.7.0 29 12/23/2025
17.7.0-preview-23364-03 26 12/13/2025
17.7.0-preview.23280.1 30 12/10/2025
17.6.3 33 12/30/2025
17.6.2 44 12/13/2025
17.6.1 34 12/30/2025
17.6.0 45 12/13/2025
17.6.0-preview-20230223-05 41 12/21/2025
17.5.0 1,045 12/10/2025
17.5.0-preview-20221221-03 43 12/13/2025
17.5.0-preview-20221003-04 32 12/21/2025
17.4.1 36 12/11/2025
17.4.0 39 12/19/2025
17.4.0-preview-20221003-03 50 12/13/2025
17.4.0-preview-20220726-02 47 12/10/2025
17.4.0-preview-20220707-01 46 12/14/2025
17.3.3 43 12/12/2025
17.3.2 34 12/09/2025
17.3.1 44 12/24/2025
17.3.0 33 12/13/2025
17.3.0-preview-20220612-01 35 12/20/2025
17.3.0-preview-20220530-08 41 12/13/2025
17.3.0-preview-20220426-02 42 12/20/2025
17.2.1 44 12/10/2025
17.2.0 44 12/13/2025
17.2.0-preview-20220401-08 35 12/13/2025
17.2.0-preview-20220401-07 25 12/20/2025
17.2.0-preview-20220301-01 35 12/20/2025
17.2.0-preview-20220131-20 44 12/13/2025
17.1.0 47 12/23/2025
17.1.0-release-20220113-05 50 12/10/2025
17.1.0-preview-20211130-02 35 12/13/2025
17.1.0-preview-20211109-03 49 12/20/2025
17.0.2 32 12/31/2025
17.0.1-release-20211109-01 34 12/10/2025
17.0.0 31 12/10/2025
16.11.0 47 12/20/2025
16.11.0-release-20210626-04 43 12/12/2025
16.10.0 41 12/10/2025
16.10.0-release-20210429-01 45 12/13/2025
16.10.0-release-20210422-02 31 12/20/2025
16.10.0-release-20210330-02 27 12/12/2025
16.10.0-release-20210329-03 28 12/22/2025
16.10.0-preview-20210219-03 41 12/11/2025
16.9.4 44 12/13/2025
16.9.4-release-20210331-01 42 12/15/2025
16.9.1 33 12/15/2025
16.9.0-preview-20210127-04 45 12/21/2025
16.9.0-preview-20210106-01 40 12/13/2025
16.9.0-preview-20201123-03 47 12/10/2025
16.9.0-preview-20201020-06 39 12/20/2025
16.8.3 31 01/01/2026
16.8.0 42 12/13/2025
16.8.0-preview-20200921-01 38 12/20/2025
16.8.0-preview-20200812-03 28 12/13/2025
16.8.0-preview-20200806-02 40 12/10/2025
16.7.1 28 12/13/2025
16.7.0 27 12/23/2025
16.7.0-preview-20200519-01 37 12/13/2025
16.7.0-preview-20200428-01 37 12/21/2025
16.6.1 34 12/23/2025
16.6.0 28 12/23/2025
16.6.0-preview-20200318-01 43 12/20/2025
16.6.0-preview-20200310-03 40 12/12/2025
16.6.0-preview-20200309-01 44 12/20/2025
16.6.0-preview-20200226-03 35 12/10/2025
16.5.0 44 12/14/2025
16.5.0-preview-20200203-01 49 12/13/2025
16.5.0-preview-20200116-01 34 12/19/2025
16.5.0-preview-20200110-02 37 01/16/2026
16.5.0-preview-20200102-01 40 12/20/2025
16.5.0-preview-20191216-02 44 12/21/2025
16.5.0-preview-20191115-01 47 12/11/2025
16.4.0 34 12/13/2025
16.4.0-preview-20191007-01 33 12/21/2025
16.3.0 40 12/18/2025
16.3.0-preview-20190828-03 37 12/13/2025
16.3.0-preview-20190808-03 31 12/21/2025
16.3.0-preview-20190715-02 37 12/21/2025
16.2.0 33 12/13/2025
16.2.0-preview-20190606-02 45 12/14/2025
16.1.1 35 12/23/2025
16.1.0 36 12/22/2025
16.0.2-preview-20190502-01 43 12/10/2025
16.0.1 31 12/26/2025
16.0.0 37 12/13/2025
16.0.0-preview-20190203-03 46 12/10/2025
16.0.0-preview-20190201-03 38 12/20/2025
16.0.0-preview-20190124-02 55 12/10/2025
16.0.0-preview-20181205-02 29 12/19/2025
16.0.0-preview-20181128-01 30 12/15/2025
15.9.2 37 12/13/2025
15.9.1 35 12/15/2025
15.9.0 43 12/15/2025
15.9.0-preview-20180924-03 36 12/21/2025
15.9.0-preview-20180816-01 36 12/13/2025
15.9.0-preview-20180807-05 38 12/21/2025
15.8.0 38 12/21/2025
15.8.0-preview-20180610-02 35 12/15/2025
1.0.3 40 12/26/2025
1.0.2 28 12/13/2025
1.0.1 25 12/25/2025
1.0.0 26 12/23/2025
1.0.0-alpha-stj-26213-07 42 04/14/2026