xUnit -> MSTest Migration Convert xUnit.net v2 or v3 tests to MSTest v4 without changing the target framework or test platform. A successful migration builds, discovers the same tests, and preserves pass/fail results and execution semantics. Scope Use this skill only when the project contains xUnit packages or source and the user wants MSTest. If the project already uses MSTest and contains no xUnit tests, report that no framework migration is needed and make no changes. Do not combine this framework conversion with a target-framework upgrade or VSTest/MTP migration. Complete and verify one migration before starting another. Response Mode Full migration request: inspect the project, make the edits, build, and run tests. Do not stop after giving a plan. Focused compile error or API question: inspect the relevant code and apply only that mapping. Do not narrate the entire workflow. Unsupported target framework: stop before changing packages. MSTest v4 requires .NET 8+ or .NET Framework 4.6.2+ for test applications; offer a separately approved TFM upgrade or MSTest v3 as the intermediate target. Decisions That Change the Result Apply these before the mechanical mapping: Show more Installs 981 Repository dotnet/skills GitHub Stars 5.3K First Seen Jun 5, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass
migrate-xunit-to-mstest
安装
npx skills add https://github.com/dotnet/skills --skill migrate-xunit-to-mstest