Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Migrates MSTest v1 and v2 test projects to MSTest v3, fixing assertion overloads, packages, and testsettings.
Use this skill ↓45% 77%+32 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 10 of 22 without it.
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.
Directs the user to use the dedicated MSTest v3 to v4 migration guidance rather than performing the v1/v2 to v3 upgrade steps.
3 of 3 safety checks passed
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 |
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.