Microsoft.Testing.Platform.MSBuild 2.4.1
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.
No packages depend on Microsoft.Testing.Platform.MSBuild.
See the release notes at https://github.com/microsoft/testfx/blob/main/docs/Changelog-Platform.md#2.4.1.
.NET 8.0
- Microsoft.Testing.Platform (>= 2.4.1 && < 3.0.0)
.NET 9.0
- Microsoft.Testing.Platform (>= 2.4.1 && < 3.0.0)
.NET Standard 2.0
- Microsoft.Testing.Platform (>= 2.4.1 && < 3.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 2.4.1 | 2 | 10/05/2026 |
| 2.4.0 | 0 | 09/02/2026 |
| 2.3.3 | 0 | 07/28/2026 |
| 2.3.2 | 0 | 07/13/2026 |
| 2.3.1 | 0 | 07/08/2026 |
| 2.3.0 | 0 | 07/07/2026 |
| 2.2.3 | 0 | 05/14/2026 |
| 2.2.2 | 0 | 04/30/2026 |
| 2.2.1 | 0 | 04/07/2026 |
| 2.1.0 | 0 | 02/03/2026 |
| 2.0.2 | 0 | 11/11/2025 |
| 2.0.1 | 0 | 10/14/2025 |
| 2.0.0 | 0 | 10/07/2025 |
| 2.0.0-preview.25480.4 | 0 | 09/30/2025 |
| 2.0.0-preview.25465.3 | 0 | 09/15/2025 |
| 2.0.0-preview.25454.2 | 0 | 09/04/2025 |
| 2.0.0-preview.25452.10 | 0 | 09/02/2025 |
| 2.0.0-preview.25415.9 | 0 | 08/15/2025 |
| 2.0.0-preview.25411.5 | 0 | 08/15/2025 |
| 2.0.0-preview.25372.6 | 0 | 07/22/2025 |
| 2.0.0-preview.25358.7 | 0 | 07/08/2025 |
| 1.9.1 | 0 | 11/11/2025 |
| 1.9.0 | 0 | 10/01/2025 |
| 1.8.5 | 0 | 09/30/2025 |
| 1.8.4 | 0 | 09/02/2025 |
| 1.8.3 | 0 | 08/26/2025 |
| 1.8.2 | 0 | 08/12/2025 |
| 1.8.1 | 0 | 08/05/2025 |
| 1.8.0 | 0 | 07/29/2025 |
| 1.7.3 | 0 | 06/17/2025 |
| 1.7.2 | 0 | 06/10/2025 |
| 1.7.1 | 0 | 05/27/2025 |
| 1.7.0 | 0 | 05/20/2025 |
| 1.7.0-preview.25167.10 | 0 | 03/18/2025 |
| 1.6.3 | 0 | 03/17/2025 |
| 1.6.2 | 0 | 02/19/2025 |
| 1.6.1 | 0 | 02/18/2025 |
| 1.6.0 | 0 | 02/12/2025 |
| 1.5.3 | 0 | 01/27/2025 |
| 1.5.2 | 0 | 01/21/2025 |
| 1.5.1 | 0 | 01/13/2025 |
| 1.5.0 | 0 | 12/20/2024 |
| 1.4.3 | 0 | 11/12/2024 |
| 1.4.2 | 0 | 10/31/2024 |
| 1.4.1 | 0 | 10/03/2024 |
| 1.4.0 | 0 | 09/11/2024 |
| 1.4.0-preview.24422.11 | 0 | 08/23/2024 |
| 1.4.0-preview.24415.5 | 0 | 08/15/2024 |
| 1.3.2 | 0 | 08/05/2024 |
| 1.3.1 | 0 | 07/16/2024 |
| 1.3.0-preview.24325.7 | 0 | 06/25/2024 |
| 1.2.1 | 0 | 05/21/2024 |
| 1.2.0 | 0 | 05/16/2024 |
| 1.1.0 | 0 | 04/03/2024 |
| 1.1.0-preview.24163.4 | 0 | 03/14/2024 |
| 1.0.2 | 0 | 02/22/2024 |
| 1.0.1 | 0 | 02/13/2024 |
| 1.0.0 | 0 | 01/24/2024 |
| 1.0.0-preview.24068.6 | 0 | 01/19/2024 |
| 1.0.0-preview.23622.9 | 0 | 12/23/2023 |
| 1.0.0-preview.23621.14 | 0 | 12/22/2023 |