Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Migrates .NET test projects and CI pipelines from VSTest to Microsoft.Testing.Platform, covering MSTest, NUnit, and xUnit.
43% 70%+26 ptsof test cases passed
Passed 16 of 23 test cases with the skill, and 10 of 23 without it.
We have a packaged WinUI 3 UI test project targeting Windows 10/11. We want to convert its runner configuration to Microsoft.Testing.Platform to run native AOT tests. How should we configure Directory.Build.props to enable MTP for this packaged WinUI test project?
The response states that Microsoft.Testing.Platform does not currently support packaged WinUI or UWP test projects.
3 of 3 safety checks passed
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.
Inspect the supplied project, Directory.Build.props, global.json, and CI
files before searching the web or answering from memory. Resolve the framework
and SDK mode first: .NET 9 and earlier use the compatibility property plus the
-- separator; .NET 10 native MTP uses global.json, removes that property,
and passes MTP arguments without the separator. For central properties, never
condition on IsTestProject in Directory.Build.props; use a property already
available there, such as MSBuildProjectName.
Important: Do not mix VSTest-based and MTP-based .NET test projects in the same solution or run configuration -- this is an unsupported scenario.
dotnet run / dotnet watch / direct executable execution for test projectsvstest.console.exe with dotnet test on MTPdotnet test arguments from VSTest syntax to MTP syntaxmigrate-mstest-v1v2-to-v3 or migrate-mstest-v3-to-v4| Input | Required | Description |
|---|---|---|
| Project or solution path | No | The .csproj, .sln, or .slnx entry point containing test projects. Discover it yourself by globbing the working directory; ask only when nothing is found or the choice is genuinely ambiguous |
| Test framework | No | MSTest, NUnit, xUnit.net v2, or xUnit.net v3. Auto-detected from package references |
| .NET SDK version | No | Determines dotnet test integration mode. Prefer the repository's global.json or explicitly stated CI SDK; use host dotnet --version only when the repository does not pin or state one |
Published skills whose descriptions closely match this one, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.