
migrate-xunit-to-xunit-v3
Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks
by dotnetFree
Description
Migrate xUnit to xunit.v3 is an agent skill for moving .NET test projects from xUnit.net v2 to xunit.v3 and fixing the breaking changes that follow. The result is a solution where every test project references xunit.v3 packages, compiles cleanly, and passes its tests with the same results as before the migration. The skill covers package conversion, central package management, the OutputType=Exe change that xunit.v3 uses, and keeping the VSTest or Microsoft.Testing.Platform runner the project already has. It is for compile errors that appear after the xunit package references are updated to v3. It does not cover moving between test frameworks, such as to MSTest or NUnit, which the skill treats as a separate and larger effort. It also does not cover moving from VSTest to Microsoft.Testing.Platform, which the skill page sends to the migrate-vstest-to-mtp skill. A project that already references xunit.v3 needs no migration. The skill is part of the dotnet/skills repository on GitHub.…
Highlights
- Moves xUnit v2 test projects to xunit.v3 packages
- Handles central package management and OutputType=Exe
- Keeps the existing VSTest or MTP runner
- Fixes compile errors after the package update
Ratings & Reviews
No ratings yet
Be the first to rate migrate-xunit-to-xunit-v3.
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

run-tests
ALWAYS USE before running .NET tests or answering with a test command or flags
migrate-xunit-to-xunit-v3 FAQ
What does this skill do?
It upgrades .NET test projects from xUnit.net v2 to xunit.v3, converts the packages, and fixes the compile errors and behavior changes until all tests pass as before.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill migrate-xunit-to-xunit-v3 in your project.
Is it free?
Yes. The skill page lists its pricing as Free.
Which migrations are out of scope?
Moves to MSTest or NUnit, which are different efforts, and moves from VSTest to Microsoft.Testing.Platform, which use migrate-vstest-to-mtp instead.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best migrate-xunit-to-xunit-v3 alternatives?
Popular alternatives to migrate-xunit-to-xunit-v3 include migrate-xunit-to-mstest, migrate-mstest-v1v2-to-v3 and migrate-nunit-to-mstest. See all migrate-xunit-to-xunit-v3 alternatives





