Microsoft.Testing.Platform.MSBuild 2.4.0
Microsoft.Testing.Platform.MSBuild
Microsoft.Testing.Platform.MSBuild provides the MSBuild tasks needed for Microsoft.Testing.Platform, including entry-point generation and test configuration file support.
Microsoft.Testing.Platform is open source. You can find Microsoft.Testing.Platform.MSBuild code in the microsoft/testfx GitHub repository.
Install the package
dotnet add package Microsoft.Testing.Platform.MSBuild
Usage
No manual API call is required. Referencing the package imports its MSBuild integration, which generates the test application entry point and copies testconfig.json to the output directory. Test framework packages normally reference this package transitively.
Command-line option argument defaults can be authored directly in testconfig.json:
{
"commandLineOptionDefaults": {
"report-trx-filename": "{asm}.trx"
}
}
SDKs and shared build infrastructure can supply the same defaults through MSBuild:
<ItemGroup>
<TestingPlatformCommandLineOptionDefault Include="report-trx-filename" Value="{asm}.trx" />
</ItemGroup>
These defaults are passive: they do not enable --report-trx or any other feature. An explicit command-line value or active commandLineOptions entry takes precedence. If both testconfig.json and MSBuild define the same default, the value in testconfig.json wins.
About
This package provides:
- Entry-point generation: generates the required entry point for Microsoft.Testing.Platform test projects
- Configuration file support: generates
$(AssemblyName).testconfig.jsonfrom the project configuration and anyTestingPlatformCommandLineOptionDefaultitems dotnet testcompatibility: enables running MTP-based test projects through the VSTest-baseddotnet testcommand on .NET SDKs
This package is typically not referenced directly. Instead, test framework packages (such as MSTest) reference it automatically.
Documentation
For this package, see https://learn.microsoft.com/dotnet/core/testing/microsoft-testing-platform-intro#use-dotnet-test.
For comprehensive documentation, see https://aka.ms/testingplatform.
Feedback & contributing
Microsoft.Testing.Platform is an open source project. Provide feedback or report issues in the microsoft/testfx GitHub repository.
Showing the top 20 packages that depend on Microsoft.Testing.Platform.MSBuild.
| Packages | Downloads |
|---|---|
|
xunit.v3.core.mtp-v1
Includes the core library (xunit.v3.core.dll), to be used for writing tests; extensibility authors should include xunit.v3.extensibility.core instead. Includes support for Microsoft.Testing.Platform v1. Supports .NET Framework 4.7.2 or later and .NET 8 or later.
|
429 |
|
xunit.v3.core
Includes the core library (xunit.v3.core.dll), to be used for writing tests; extensibility authors should include xunit.v3.extensibility.core instead. Supports .NET Framework 4.7.2 or later and .NET 8 or later.
|
17 |
|
xunit.v3.core
Includes the core library (xunit.v3.core.dll), to be used for writing tests; extensibility authors should include xunit.v3.extensibility.core instead. Supports .NET Framework 4.7.2 or later and .NET 6.0 or later.
|
16 |
|
xunit.v3.core
Includes the core library (xunit.v3.core.dll), to be used for writing tests; extensibility authors should include xunit.v3.extensibility.core instead. Supports .NET Framework 4.7.2 or later and .NET 8 or later.
|
16 |
|
xunit.v3.core
Includes the core library (xunit.v3.core.dll), to be used for writing tests; extensibility authors should include xunit.v3.extensibility.core instead. Supports .NET Framework 4.7.2 or later and .NET 8 or later.
|
15 |
|
xunit.v3.core
Includes the core library (xunit.v3.core.dll), to be used for writing tests; extensibility authors should include xunit.v3.extensibility.core instead. Supports .NET Framework 4.7.2 or later and .NET 6.0 or later.
|
15 |
|
xunit.v3.core
Includes the core library (xunit.v3.core.dll), to be used for writing tests; extensibility authors should include xunit.v3.extensibility.core instead. Supports .NET Framework 4.7.2 or later and .NET 6.0 or later.
|
14 |
|
xunit.v3.core.mtp-v1
Includes the core library (xunit.v3.core.dll), to be used for writing tests; extensibility authors should include xunit.v3.extensibility.core instead. Includes support for Microsoft.Testing.Platform v1. Supports .NET Framework 4.7.2 or later and .NET 8 or later.
|
14 |
See the release notes at https://github.com/microsoft/testfx/blob/main/docs/Changelog-Platform.md#2.4.0.
.NET 8.0
- Microsoft.Testing.Platform (>= 2.4.0 && < 3.0.0)
.NET 9.0
- Microsoft.Testing.Platform (>= 2.4.0 && < 3.0.0)
.NET Standard 2.0
- Microsoft.Testing.Platform (>= 2.4.0 && < 3.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 2.4.1 | 2 | 10/02/2026 |
| 2.4.0 | 2 | 10/02/2026 |
| 2.3.3 | 5 | 08/03/2026 |
| 2.3.2 | 7 | 07/19/2026 |
| 2.3.1 | 6 | 07/12/2026 |
| 2.3.0 | 6 | 07/12/2026 |
| 2.2.3 | 9 | 05/16/2026 |
| 2.2.2 | 12 | 05/03/2026 |
| 2.2.1 | 7 | 04/26/2026 |
| 2.1.0 | 8 | 05/10/2026 |
| 2.0.2 | 9 | 04/25/2026 |
| 2.0.1 | 10 | 04/27/2026 |
| 2.0.0 | 9 | 04/25/2026 |
| 2.0.0-preview.25480.4 | 9 | 04/29/2026 |
| 2.0.0-preview.25465.3 | 9 | 04/29/2026 |
| 2.0.0-preview.25454.2 | 9 | 04/25/2026 |
| 2.0.0-preview.25452.10 | 7 | 04/25/2026 |
| 2.0.0-preview.25415.9 | 9 | 04/29/2026 |
| 2.0.0-preview.25411.5 | 9 | 04/29/2026 |
| 2.0.0-preview.25372.6 | 9 | 04/29/2026 |
| 2.0.0-preview.25358.7 | 9 | 04/29/2026 |
| 1.9.1 | 228 | 04/25/2026 |
| 1.9.0 | 10 | 04/27/2026 |
| 1.8.5 | 9 | 04/27/2026 |
| 1.8.4 | 9 | 04/27/2026 |
| 1.8.3 | 8 | 04/27/2026 |
| 1.8.2 | 10 | 04/27/2026 |
| 1.8.1 | 9 | 04/25/2026 |
| 1.8.0 | 10 | 04/27/2026 |
| 1.7.3 | 8 | 04/27/2026 |
| 1.7.2 | 9 | 04/27/2026 |
| 1.7.1 | 9 | 04/25/2026 |
| 1.7.0 | 10 | 04/27/2026 |
| 1.7.0-preview.25167.10 | 6 | 04/25/2026 |
| 1.6.3 | 9 | 04/25/2026 |
| 1.6.2 | 10 | 04/27/2026 |
| 1.6.1 | 9 | 04/25/2026 |
| 1.6.0 | 10 | 04/27/2026 |
| 1.5.3 | 9 | 04/25/2026 |
| 1.5.2 | 10 | 04/27/2026 |
| 1.5.1 | 8 | 04/25/2026 |
| 1.5.0 | 10 | 04/27/2026 |
| 1.4.3 | 9 | 04/25/2026 |
| 1.4.2 | 10 | 04/27/2026 |
| 1.4.1 | 9 | 04/25/2026 |
| 1.4.0 | 10 | 04/27/2026 |
| 1.4.0-preview.24422.11 | 9 | 04/27/2026 |
| 1.4.0-preview.24415.5 | 9 | 04/29/2026 |
| 1.3.2 | 9 | 04/25/2026 |
| 1.3.1 | 9 | 04/27/2026 |
| 1.3.0-preview.24325.7 | 8 | 04/28/2026 |
| 1.2.1 | 9 | 04/25/2026 |
| 1.2.0 | 10 | 04/27/2026 |
| 1.1.0 | 9 | 04/25/2026 |
| 1.1.0-preview.24163.4 | 9 | 04/29/2026 |
| 1.0.2 | 10 | 04/27/2026 |
| 1.0.1 | 9 | 04/25/2026 |
| 1.0.0 | 9 | 04/25/2026 |
| 1.0.0-preview.24068.6 | 9 | 04/29/2026 |
| 1.0.0-preview.23622.9 | 9 | 04/29/2026 |
| 1.0.0-preview.23621.14 | 6 | 04/25/2026 |