
Description
Migrate VSTest to MTP is an agent skill for moving a .NET test solution from VSTest to Microsoft.Testing.Platform (MTP). The result is a solution where every test project runs on MTP, dotnet test works correctly, and CI and pipeline configuration is updated to match. The skill tells the agent to inspect the project, Directory.Build.props, global.json and CI files before it searches the web or answers from memory. It explains the framework and SDK differences. .NET 9 and earlier use a compatibility property and the double-dash separator, while .NET 10 native MTP reads global.json, drops that property and passes MTP arguments without the separator. For shared properties it warns not to condition on IsTestProject in Directory.Build.props, and to use a property that is already available there, such as MSBuildProjectName. It also says that VSTest-based and MTP-based test projects must not be mixed in the same solution or run configuration, because that is unsupported. The skill applies when tests or CI are switching to MTP, or when an existing MTP setup needs repair. It is part of the dotnet/skills repository on GitHub.…
Highlights
- Moves every test project in a solution to MTP
- Handles .NET 9 and .NET 10 differences in SDK setup
- Updates CI and pipeline configuration
- Warns against mixing VSTest and MTP projects
Ratings & Reviews
No ratings yet
Be the first to rate migrate-vstest-to-mtp.
People also visit

migrate-mstest-v1v2-to-v3
Use this skill before answering or editing whenever an MSTest v1/v2 project is

migrate-nunit-to-mstest
Convert .NET tests from NUnit 3/4 to MSTest v4 while preserving VSTest or MTP

run-tests
ALWAYS USE before running .NET tests or answering with a test command or flags
migrate-vstest-to-mtp FAQ
What does this skill do?
It converts a .NET test solution from VSTest to Microsoft.Testing.Platform, so that dotnet test runs on MTP and the CI configuration matches.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill migrate-vstest-to-mtp in your project.
Is it free?
Yes. The skill page lists its pricing as Free.
Can VSTest and MTP projects share a solution?
No. The skill says mixing VSTest-based and MTP-based test projects in the same solution or run configuration is an unsupported scenario.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best migrate-vstest-to-mtp alternatives?
Popular alternatives to migrate-vstest-to-mtp include migrate-mstest-v1v2-to-v3, migrate-mstest-v3-to-v4 and migrate-xunit-to-mstest. See all migrate-vstest-to-mtp alternatives










