
Description
Migrate MSTest v3 to v4 is an agent skill for upgrading a test project from MSTest 3.x to 4.x and for fixing failures that appear after such an upgrade. The goal is a project on MSTest v4 that builds cleanly, passes its tests and accounts for every source-incompatible and behavior change. MSTest v4 is not binary compatible with v3, so any library compiled against v3 must be recompiled against v4. The skill asks the agent to read the supplied project and source first. It then classifies the request as a focused source fix, a runtime behavior change, a CI discovery issue, a compatibility question or a full migration, and follows the matching steps. It stresses that a clean compile does not rule the skill out, because discovery failures, TestContext lifecycle exceptions and test-history changes count as runtime migration failures. The skill's description lists phrases such as MSTest v4 breaking changes as triggers. It is part of the dotnet/skills repository on GitHub.…
Highlights
- Full migration or focused fix, chosen after reading the project
- Covers discovery failures and TestContext lifecycle exceptions
- Recompilation rule for libraries built against v3
Ratings & Reviews
No ratings yet
Be the first to rate migrate-mstest-v3-to-v4.
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

migrate-xunit-to-xunit-v3
Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks
migrate-mstest-v3-to-v4 FAQ
What does this skill do?
It helps move a test project from MSTest 3.x to 4.x, or fixes what broke after the upgrade, by classifying the problem and applying the matching steps.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill migrate-mstest-v3-to-v4 in your project.
Is it free?
Yes. The skill page lists its pricing as Free.
Why can a clean build still need this skill?
Discovery failures, TestContext lifecycle exceptions and test-history changes only appear at runtime, so the skill treats them as part of the migration.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best migrate-mstest-v3-to-v4 alternatives?
Popular alternatives to migrate-mstest-v3-to-v4 include migrate-mstest-v1v2-to-v3, migrate-vstest-to-mtp and migrate-nunit-to-mstest. See all migrate-mstest-v3-to-v4 alternatives











