MSBuild tasks and targets to perform api compatibility checks on assemblies and packages.
Install
No framework information available.
README
Microsoft.DotNet.ApiCompat.Task
MSBuild tasks and targets to perform API compatibility checks on assemblies and packages.
Getting started
Add a PackageReference to this package and the EnablePackageValidation and
ApiCompatValidateAssemblies features become available on your project. See
the package validation docs
for the full list of options.
<PackageReference Include="Microsoft.DotNet.ApiCompat.Task" Version="..." PrivateAssets="all" />
Requirements
This package ships only a .NET (Core) implementation of the MSBuild task. When
the task is invoked from desktop MSBuild.exe (i.e. inside Visual Studio), the
task is loaded into a .NET task host using MSBuild's Runtime="NET" support.
That support requires:
- MSBuild 18.0 or later (Visual Studio 2026 /
MSBuild.exe18.0+). - Equivalently, .NET SDK 10.0.100 or later.
If the package is consumed under an older MSBuild / SDK, the task will fail to
load with MSB4175 ("The task factory ... could not be loaded") or with a
NETHostTaskLoad_Failed error from the .NET task host. Upgrade Visual Studio
or the .NET SDK to a supported version to resolve.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.