Any Framework
Provides props and targets to instrument Native AOT binary.
Published
Sep 11, 2026
2mo ago
Total Downloads
117.4K
117,409
Install
dotnet add package Microsoft.CodeCoverage.MSBuild --version 18.11.2
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.0 and v18.11.2.
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.