MSTest v1/v2 -> v3 Migration
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.
When to Use
Project references
Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
(MSTest v1)
Project uses
MSTest.TestFramework
/
MSTest.TestAdapter
NuGet 1.x or 2.x
Resolving build errors after updating MSTest packages from v1/v2 to v3 -- including when the packages already read 3.x and only the source or settings still need fixing
Replacing
.testsettings
with
.runsettings
Adopting MSTest.Sdk or in-assembly parallel execution
When Not to Use
Project already on MSTest v3 with no migration-related build errors and no leftover
.testsettings
/
migrate-mstest-v1v2-to-v3
安装
npx skills add https://github.com/dotnet/skills --skill migrate-mstest-v1v2-to-v3