Install any skill in seconds. Free to start, no credit card required.
Get Started Free →managedcode/migrate-mstest-v1v2-to-v3
Migrate MSTest v1 or v2 test projects to MSTest v3.
Passed 15 of 20 test cases with the skill, and 9 of 20 without it.
and 5 more in the full report
7 fixed10 passed either way5 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
We have a C# test solution that is currently running on MSTest version 3.8.0 with all tests passing. We want to upgrade the repository to MSTest v4.0.0. Please update the package versions in Directory.Packages.props and resolve any v4-specific breaking changes.
| Checked | Without skill | With skill |
|---|---|---|
| Directs the user to use the dedicated MSTest v3 to v4 migration guidance rather than performing the v1/v2 to v3 upgrade steps. | Missed | Passed |
| Refrains from replacing existing 3.x MSTest package references with v3 metapackage adjustments. | Passed | Passed |
The instructions your model reads when the skill loads.
Migrate a test project from MSTest v1 (assembly references) or MSTest v2 (NuGet 1.x-2.x) to MSTest v3. MSTest v3 is not binary compatible with v1/v2 -- libraries compiled against v1/v2 must be recompiled.
Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll (MSTest v1)MSTest.TestFramework / MSTest.TestAdapter NuGet 1.x or 2.x.testsettings with .runsettingsmigrate-mstest-v3-to-v4Check package versions before any edit. If all MSTest references are already 3.x and no v1/v2-to-v3 error is reported, state that migration is complete and make no changes. Do not consolidate working v3 packages into the metapackage. Run the existing tests only if verification was requested. This overrides all steps below.
| Input | Required | Description |
|---|---|---|
| Project or solution path | Yes | The .csproj, .sln, or .slnx entry point containing MSTest test projects |
| Build command | No | How to build (e.g., dotnet build, a repo build script). Auto-detect if not provided |
| Test command | No | How to run tests (e.g., dotnet test). Auto-detect if not provided |
MSTest v3 introduces these breaking changes from v1/v2. Address only the ones relevant to the project:
| Breaking Change | Impact | Fix |
|---|---|---|
Assert.AreEqual(object, object) overload removed | Compile error on untyped assertions | Add generic type: Assert.AreEqual<T>(expected, actual). Same for AreNotEqual, AreSame, AreNotSame |
test cases passed, vs 9 / 20 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.