Microsoft.CodeCoverage 18.11.0

Prefix Reserved
dotnet add package Microsoft.CodeCoverage --version 18.11.0
                    
NuGet\Install-Package Microsoft.CodeCoverage -Version 18.11.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.CodeCoverage" Version="18.11.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.CodeCoverage" Version="18.11.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.CodeCoverage" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.CodeCoverage --version 18.11.0
                    
#r "nuget: Microsoft.CodeCoverage, 18.11.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.CodeCoverage@18.11.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.CodeCoverage&version=18.11.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.CodeCoverage&version=18.11.0
                    
Install as a Cake Tool

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (16)

Showing the top 5 NuGet packages that depend on Microsoft.CodeCoverage:

Package Downloads
Microsoft.NET.Test.Sdk

The MSbuild targets and properties for building .NET test projects.

Rocket.Surgery.Extensions.Testing.Coverlet

Package Description

NF-CL-Mobile

Description

Lapiwe.Eventbus

An event bus for publishing and dispatching events

RabbitFramework.Core

Deprecated. Use Remiworks.Core.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Microsoft.CodeCoverage:

Repository Stars
peass-ng/PEASS-ng
PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)
Version Downloads Last Updated
18.11.0 2,656,733 10/13/2026
18.10.1 12,043,882 9/15/2026
18.10.0 2,925,967 9/9/2026
18.9.0 12,256,334 8/14/2026
18.8.1 16,620,652 7/14/2026
18.8.0 239,274 7/14/2026
18.7.0 10,889,416 6/23/2026
18.6.0 14,803,954 5/26/2026
18.5.1 15,725,702 4/28/2026
18.4.0 12,749,917 4/7/2026
18.3.0 25,346,850 2/24/2026
18.0.1 59,874,568 11/11/2025
18.0.0 18,458,952 10/2/2025
17.14.1 98,662,580 6/3/2025
17.14.0 12,438,342 5/20/2025
17.14.0-preview-25107-01 415,070 2/10/2025
17.13.0 73,011,168 2/10/2025
17.12.0 93,334,258 11/19/2024
1.0.0-alpha-stj-26213-07 792 4/14/2026
Loading failed