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 |
|---|---|
|
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Supported platforms:
- .NET 4.6.2+
- .NET 8.0+
- .NET 8.0 Windows.18362+ (WinUI)
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9
|
22 |
|
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Supported platforms:
- .NET 4.6.2+
- .NET 8.0+
- .NET 8.0 Windows.18362+ (WinUI)
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9
|
23 |
|
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Supported platforms:
- .NET 4.6.2+
- .NET 8.0+
- .NET 8.0 Windows.18362+ (WinUI)
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9
|
24 |
|
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Supported platforms:
- .NET 4.6.2+
- .NET 8.0+
- .NET 8.0 Windows.18362+ (WinUI)
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9
|
25 |
|
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+
- .NET 6.0
- .NET 6.0 Windows.18362+
- UWP 10.0.16299
|
22 |
|
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+
- .NET 6.0
- .NET 6.0 Windows.18362+
- UWP 10.0.16299
|
23 |
|
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+
- .NET 6.0
- .NET 6.0 Windows.18362+
- UWP 10.0.16299
|
25 |
|
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+
- .NET 6.0
- .NET 6.0 Windows.18362+
- UWP 10.0.16299
|
26 |
|
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+
- .NET 6.0+
- .NET 6.0 Windows.18362+
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9
|
22 |
|
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+
- .NET 6.0+
- .NET 6.0 Windows.18362+
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9
|
23 |
|
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.
|
23 |
|
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.
|
22 |
|
xunit.v3.core.mtp-v2
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 v2. Supports .NET Framework 4.7.2 or later, and .NET 8 or later.
|
22 |
.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.0 | 2 | 09/06/2026 |
| 2.3.3 | 22 | 07/29/2026 |
| 2.3.2 | 24 | 07/14/2026 |
| 2.3.1 | 21 | 07/09/2026 |
| 2.3.0 | 20 | 07/09/2026 |
| 2.2.3 | 34 | 06/16/2026 |
| 2.2.2 | 26 | 06/16/2026 |
| 2.2.1 | 24 | 06/16/2026 |
| 2.1.0 | 25 | 06/16/2026 |
| 2.0.2 | 30 | 06/16/2026 |
| 2.0.1 | 31 | 06/16/2026 |
| 2.0.0 | 30 | 06/16/2026 |
| 2.0.0-preview.25480.4 | 23 | 06/16/2026 |
| 2.0.0-preview.25465.3 | 25 | 06/16/2026 |
| 2.0.0-preview.25454.2 | 25 | 06/16/2026 |
| 2.0.0-preview.25452.10 | 24 | 06/16/2026 |
| 2.0.0-preview.25415.9 | 24 | 06/16/2026 |
| 2.0.0-preview.25411.5 | 23 | 06/16/2026 |
| 2.0.0-preview.25372.6 | 19 | 06/16/2026 |
| 2.0.0-preview.25358.7 | 25 | 06/16/2026 |
| 1.9.1 | 23 | 06/16/2026 |
| 1.9.0 | 24 | 06/16/2026 |
| 1.8.5 | 25 | 06/16/2026 |
| 1.8.4 | 23 | 06/16/2026 |
| 1.8.3 | 24 | 06/16/2026 |
| 1.8.2 | 24 | 06/16/2026 |
| 1.8.1 | 24 | 06/16/2026 |
| 1.8.0 | 28 | 06/16/2026 |
| 1.7.3 | 24 | 06/16/2026 |
| 1.7.2 | 27 | 06/16/2026 |
| 1.7.1 | 24 | 06/16/2026 |
| 1.7.0 | 25 | 06/16/2026 |
| 1.7.0-preview.25167.10 | 24 | 06/16/2026 |
| 1.6.3 | 27 | 06/16/2026 |
| 1.6.2 | 25 | 06/16/2026 |
| 1.6.1 | 25 | 06/16/2026 |
| 1.6.0 | 23 | 06/16/2026 |
| 1.5.3 | 29 | 06/16/2026 |
| 1.5.2 | 24 | 06/16/2026 |
| 1.5.1 | 28 | 06/16/2026 |
| 1.5.0 | 25 | 06/16/2026 |
| 1.4.3 | 27 | 06/16/2026 |
| 1.4.2 | 19 | 06/16/2026 |
| 1.4.1 | 22 | 06/16/2026 |
| 1.4.0 | 24 | 06/16/2026 |
| 1.4.0-preview.24422.11 | 25 | 06/16/2026 |
| 1.4.0-preview.24415.5 | 27 | 06/16/2026 |
| 1.3.2 | 26 | 06/16/2026 |
| 1.3.1 | 28 | 06/16/2026 |
| 1.3.0-preview.24325.7 | 21 | 06/16/2026 |
| 1.2.1 | 26 | 06/16/2026 |
| 1.2.0 | 22 | 06/16/2026 |
| 1.1.0 | 24 | 06/16/2026 |
| 1.1.0-preview.24163.4 | 29 | 06/16/2026 |
| 1.0.2 | 23 | 06/16/2026 |
| 1.0.1 | 29 | 06/16/2026 |
| 1.0.0 | 21 | 06/16/2026 |
| 1.0.0-preview.24068.6 | 27 | 06/16/2026 |
| 1.0.0-preview.23622.9 | 27 | 06/16/2026 |
| 1.0.0-preview.23621.14 | 20 | 06/16/2026 |