Migrate a .NET test solution from VSTest to Microsoft.Testing.Platform (MTP). The outcome is a solution where all test projects run on MTP,
dotnet test
works correctly, and CI/CD pipelines are updated.
Important
Do not mix VSTest-based and MTP-based .NET test projects in the same solution or run configuration -- this is an unsupported scenario.
When to Use
Switching from VSTest to Microsoft.Testing.Platform for any supported test framework
Enabling
dotnet run
/
dotnet watch
/ direct executable execution for test projects
Enabling Native AOT or trimmed test execution
Replacing
vstest.console.exe
with
dotnet test
on MTP
Updating CI/CD pipelines from the VSTest task to the .NET Core CLI task
Updating
dotnet test
arguments from VSTest syntax to MTP syntax
When Not to Use
Show more
Installs
815
Repository
dotnet/skills
GitHub Stars
5.1K
First Seen
Mar 17, 2026
Security Audits
Gen Agent Trust Hub
Pass
Socket
Pass
Snyk
Pass