Microsoft.Testing.Platform.MSBuild
2.4.0
Prefix Reserved
dotnet add package Microsoft.Testing.Platform.MSBuild --version 2.4.0
NuGet\Install-Package Microsoft.Testing.Platform.MSBuild -Version 2.4.0
<PackageReference Include="Microsoft.Testing.Platform.MSBuild" Version="2.4.0" />
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="2.4.0" />
<PackageReference Include="Microsoft.Testing.Platform.MSBuild" />
paket add Microsoft.Testing.Platform.MSBuild --version 2.4.0
#r "nuget: Microsoft.Testing.Platform.MSBuild, 2.4.0"
#:package Microsoft.Testing.Platform.MSBuild@2.4.0
#addin nuget:?package=Microsoft.Testing.Platform.MSBuild&version=2.4.0
#tool nuget:?package=Microsoft.Testing.Platform.MSBuild&version=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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Testing.Platform (>= 2.4.0 && < 3.0.0)
-
net8.0
- Microsoft.Testing.Platform (>= 2.4.0 && < 3.0.0)
-
net9.0
- Microsoft.Testing.Platform (>= 2.4.0 && < 3.0.0)
NuGet packages (17)
Showing the top 5 NuGet packages that depend on Microsoft.Testing.Platform.MSBuild:
| Package | Downloads |
|---|---|
|
NUnit3TestAdapter
The NUnit3 TestAdapter for Visual Studio, all versions from 2012 and onwards, and DotNet (incl. .Net core), versions .net framework 4.6.2 or higher, .net 8 or higher. Note that this package ONLY contains the adapter, not the NUnit framework. For VS 2017 and forward, you should add this package to every test project in your solution. (Earlier versions only require a single adapter package per solution.) |
|
|
MSTest.TestAdapter
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 MSTest is Microsoft supported Test Framework. |
|
|
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. |
|
|
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. |
|
|
TUnit.Engine
A .NET Testing Framework |
GitHub repositories (33)
Showing the top 20 popular GitHub repositories that depend on Microsoft.Testing.Platform.MSBuild:
| Repository | Stars |
|---|---|
|
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
xunit/xunit
xUnit.net is a free, open source, community-focused unit testing tool for .NET.
|
|
|
thomhurst/TUnit
A modern, fast and flexible .NET testing framework
|
|
|
morelinq/MoreLINQ
Extensions to LINQ to Objects
|
|
|
dotnet/aspnet-api-versioning
Provides a set of libraries which add service API versioning to ASP.NET Core Minimal APIs, Controllers, gRPC, OData, and Web API (Classic).
|
|
|
dotnet/sdk
Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
|
|
|
coverlet-coverage/coverlet
Cross platform code coverage for .NET
|
|
|
ikvmnet/ikvm
A Java Virtual Machine and Bytecode-to-IL Converter for .NET
|
|
|
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
|
|
|
TabularEditor/TabularEditor
This is the code repository and issue tracker for Tabular Editor 2.X (free, open-source version). This repository is being maintained by Daniel Otykier.
|
|
|
DaxStudio/DaxStudio
DAX Studio is a tool to write, execute, and analyze DAX queries in Power BI Desktop, Power Pivot for Excel, and Analysis Services Tabular.
|
|
|
doghappy/socket.io-client-csharp
socket.io-client implemention for .NET
|
|
|
friflo/Friflo.Engine.ECS
High-performance C# ECS
|
|
|
dotnet/arcade
Tools that provide common build infrastructure for multiple .NET Foundation projects.
|
|
|
lastbattle/Harepacker-resurrected
All in one .wz file/map editor for MapleStory game files
|
|
|
darklinkpower/PlayniteExtensionsCollection
Collection of extensions made for Playnite.
|
|
|
AAEmu/AAEmu
A server software for ArcheAge written in .Net C#
|
|
|
MobiFlight/MobiFlight-Connector
MobiFlight is an open source project that allows you to create your own home cockpit for your favorite flight simulator in a flexible, affordable and extremely user-friendly way.
|
|
|
SafeExamBrowser/seb-win-refactoring
Safe Exam Browser for Windows.
|
|
|
Tapanila/SharpCaster
Chromecast C# CLI + SDK
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.4.0 | 39,839 | 9/2/2026 |
| 2.3.3 | 3,758,189 | 7/28/2026 |
| 2.3.2 | 1,310,317 | 7/13/2026 |
| 2.3.1 | 298,560 | 7/8/2026 |
| 2.3.0 | 34,000 | 7/7/2026 |
| 2.2.3 | 4,232,759 | 5/14/2026 |
| 2.2.2 | 1,249,308 | 4/30/2026 |
| 2.2.1 | 2,291,642 | 4/7/2026 |
| 2.1.0 | 23,224,617 | 2/3/2026 |
| 2.0.2 | 22,808,400 | 11/11/2025 |
| 2.0.1 | 2,984,875 | 10/14/2025 |
| 2.0.0 | 445,943 | 10/7/2025 |
| 2.0.0-preview.25480.4 | 1,910 | 9/30/2025 |
| 2.0.0-preview.25465.3 | 41,157 | 9/15/2025 |
| 2.0.0-preview.25454.2 | 9,352 | 9/4/2025 |
| 2.0.0-preview.25452.10 | 1,110 | 9/2/2025 |
| 1.9.1 | 28,470,988 | 11/11/2025 |
| 1.9.0 | 13,754,341 | 10/1/2025 |
| 1.8.5 | 203,821 | 9/30/2025 |
| 1.8.4 | 4,977,776 | 9/2/2025 |
See the release notes at https://github.com/microsoft/testfx/blob/main/docs/Changelog-Platform.md#2.4.0.