Skip to main content
Any Framework

Provides props and targets to instrument Native AOT binary.

Published
Oct 6, 2026
16d ago
Total Downloads
112.4K
112,377

Install

dotnet add package Microsoft.CodeCoverage.MSBuild --version 18.12.0

No framework information available.

README

Microsoft.CodeCoverage.MSBuild

This package contains MSBuild props and targets to instrument binaries during build.

Usage

.NET project

dotnet build /p:MsCodeCoverageInstrumentation="true"

Native AOT project

dotnet publish /p:AotMsCodeCoverageInstrumentation="true"

Sample can be found at https://github.com/microsoft/codecoverage/tree/main/samples/Algorithms/scenarios/scenario03.

Changes from Previous Version

No structural changes between v18.11.2 and v18.12.0.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.