Install the "migrate-vstest-to-mtp" agent skill from https://github.com/runceel/ReactiveProperty/tree/main/.agents/skills/migrate-vstest-to-mtp into .claude/skills/migrate-vstest-to-mtp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-vstest-to-mtp", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add runceel/ReactiveProperty --skill migrate-vstest-to-mtp -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "migrate-vstest-to-mtp" agent skill from https://github.com/runceel/ReactiveProperty/tree/main/.agents/skills/migrate-vstest-to-mtp into .agents/skills/migrate-vstest-to-mtp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-vstest-to-mtp", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add runceel/ReactiveProperty --skill migrate-vstest-to-mtp -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "migrate-vstest-to-mtp" agent skill from https://github.com/runceel/ReactiveProperty/tree/main/.agents/skills/migrate-vstest-to-mtp into .cursor/skills/migrate-vstest-to-mtp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-vstest-to-mtp", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add runceel/ReactiveProperty --skill migrate-vstest-to-mtp -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "migrate-vstest-to-mtp" agent skill from https://github.com/runceel/ReactiveProperty/tree/main/.agents/skills/migrate-vstest-to-mtp into .gemini/skills/migrate-vstest-to-mtp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-vstest-to-mtp", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add runceel/ReactiveProperty --skill migrate-vstest-to-mtp -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "migrate-vstest-to-mtp" agent skill from https://github.com/runceel/ReactiveProperty/tree/main/.agents/skills/migrate-vstest-to-mtp into .github/skills/migrate-vstest-to-mtp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-vstest-to-mtp", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add runceel/ReactiveProperty --skill migrate-vstest-to-mtp -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "migrate-vstest-to-mtp" agent skill from https://github.com/runceel/ReactiveProperty/tree/main/.agents/skills/migrate-vstest-to-mtp into .opencode/skills/migrate-vstest-to-mtp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "migrate-vstest-to-mtp", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
migrate-vstest-to-mtp
GitHub stars
944
Token cost
~4.3k tokens
SKILL.md length
1,613 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
MIT
At a glance
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP).
Works in 10 steps: Assess the solution → Set up Directory.Build.props → Enable the framework-specific MTP runner → …
User asks to migrate to MTP
SKILL.md covers When to Use, When Not to Use, Inputs and Workflow, plus 4 more sections
Calls dotnet
What it does
Migrate Vstest To Mtp is an agent skill from runceel/ReactiveProperty. Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", or mentions EnableMSTestRunner, EnableNUnitRunner, UseMicrosoftTestingPlatformRunner, or dotnet test exit code 8. Supports MSTest, NUnit, xUnit.net v2 (via YTest.MTP.XUnit2), and xUnit.net v3 (native MTP). Also covers translating xUnit.net v3 MTP filter syntax (--filter-class, --filter-trait, --filter-query). Covers runner…
Its SKILL.md is about 4.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in DevOps & Cloud, covering Unit testing, Translation and Code migrations. It works with .NET and Windows. The repository describes itself as: ReactiveProperty provides MVVM and asynchronous support features under Reactive Extensions. Target frameworks are .NET 6+, .NET Framework 4.7.2 and .NET Standard 2.0. The licence is MIT.
When your agent uses it
User asks to migrate to MTP
Switch from VSTest
Enable Microsoft.Testing.Platform
Mentions EnableMSTestRunner
Example prompts
“migrate to MTP”
“switch from VSTest”
“enable Microsoft.Testing.Platform”
“/migrate-vstest-to-mtp”
Workflow steps
10 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e7e6474. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Runs code
Shell commands in SKILL.md call:
dotnet
From the folder's file list and the shell code blocks in SKILL.md.
Network
Links to these hosts (documentation or services it may open):
learn.microsoft.com
xunit.net
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
Migrate Vstest To Mtp loads about 4.3k tokens when it runs. Until then it costs about 222 tokens; SKILL.md has 1,613 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~222
When it runs· the whole SKILL.md, loaded when a task matches
~4.3k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check passed
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Download SKILL.mdSave it as .claude/skills/migrate-vstest-to-mtp/SKILL.md (or your agent's skills folder).
name
migrate-vstest-to-mtp
description
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", or mentions EnableMSTestRunner, EnableNUnitRunner, UseMicrosoftTestingPlatformRunner, or dotnet test exit code 8. Supports MSTest, NUnit, xUnit.net v2 (via YTest.MTP.XUnit2), and xUnit.net v3 (native MTP). Also covers translating xUnit.net v3 MTP filter syntax (--filter-class, --filter-trait, --filter-query). Covers runner enablement, CLI argument translation, Directory.Build.props and global.json configuration, CI/CD pipeline updates, and MTP extension packages. DO NOT USE FOR: migrating between test frameworks (MSTest/xUnit/NUnit), xUnit.net v2 to v3 API migration, MSTest version upgrades (use migrate-mstest-* skills), TFM upgrades, or UWP/WinUI test projects.
metadata.github-path
plugins/dotnet-test/skills/migrate-vstest-to-mtp
metadata.github-pinned
v1.0.0
metadata.github-ref
refs/tags/v1.0.0
metadata.github-repo
https://github.com/dotnet/skills
metadata.github-tree-sha
315173b0e9ed1ed2da602be633fada8b6b831b0a
VSTest -> Microsoft.Testing.Platform Migration
Migrate a .NET test solution from VSTest to Microsoft.Testing.Platform (MTP). The outcome is a solution where all test projects run on MTP, dotnet test works correctly, and CI/CD pipelines are updated.
Important: Do not mix VSTest-based and MTP-based .NET test projects in the same solution or run configuration -- this is an unsupported scenario.
When to Use
Switching from VSTest to Microsoft.Testing.Platform for any supported test framework
Enabling dotnet run / dotnet watch / direct executable execution for test projects
Enabling Native AOT or trimmed test execution
Replacing vstest.console.exe with dotnet test on MTP
Updating CI/CD pipelines from the VSTest task to the .NET Core CLI task
Updating dotnet test arguments from VSTest syntax to MTP syntax
When Not to Use
The project already runs on Microsoft.Testing.Platform -- migration is done
Migrating between test frameworks (e.g., MSTest to xUnit.net) -- different effort entirely
The project builds UWP or packaged WinUI test projects -- MTP does not support these yet
The solution mixes .NET and non-.NET test adapters (e.g., JavaScript or C++ adapters) -- VSTest is required
Upgrading MSTest versions -- use migrate-mstest-v1v2-to-v3 or migrate-mstest-v3-to-v4
Inputs
Input
Required
Description
Project or solution path
Yes
The .csproj, .sln, or .slnx entry point containing test projects
Test framework
No
MSTest, NUnit, xUnit.net v2, or xUnit.net v3. Auto-detected from package references
.NET SDK version
No
Determines dotnet test integration mode. Auto-detected via dotnet --version
CI/CD pipeline files
No
Paths to pipeline definitions that invoke vstest.console or dotnet test
Workflow
Step 1: Assess the solution
Identify the test framework for each test project -- see the platform-detection skill for the package-to-framework mapping. Key indicators:
MSTest: References MSTest or MSTest.TestAdapter, or uses MSTest.Sdk (with <IsTestApplication> not set to false). Note: MSTest.TestFramework alone is a library dependency, not a test project.
NUnit: References NUnit3TestAdapter
xUnit.net: References xunit and xunit.runner.visualstudio
Check the .NET SDK version (dotnet --version) -- this determines how dotnet test integrates with MTP
Check whether a Directory.Build.props file exists at the solution or repo root -- all MTP properties should go there for consistency
Check for vstest.console.exe usage in CI scripts or pipeline definitions
Check for VSTest-specific dotnet test arguments in CI scripts: --filter, --logger, --collect, --settings, --blame*
Run dotnet test to establish a baseline of test pass/fail counts
Step 2: Set up Directory.Build.props
Critical: Set MTP runner properties in Directory.Build.props at the solution or repo root whenever possible, rather than per-project. This prevents inconsistent configuration where some projects use VSTest and others use MTP (an unsupported scenario).
Note: MTP also requires test projects to have <OutputType>Exe</OutputType>. Only MSTest.Sdk sets this automatically. For all other setups (MSTest NuGet packages with EnableMSTestRunner, NUnit with EnableNUnitRunner, xUnit.net with YTest.MTP.XUnit2), prefer setting <OutputType>Exe</OutputType> centrally in Directory.Build.props with a condition that targets only test projects. If you cannot reliably target only test projects from Directory.Build.props, setting <OutputType>Exe</OutputType> per-project is an acceptable exception.
Conditioning in Directory.Build.props: Do NOT use Condition="'$(IsTestProject)' == 'true'" -- IsTestProject is set by the test SDK targets later in evaluation and is not available when Directory.Build.props is imported. Use a property that is available early, such as MSBuildProjectName, to target test projects by naming convention. For example, if all test projects end in .Tests:
Ensure the project references MSTest 3.2.0 or later. If the version is already 3.2.0+, no MSTest version upgrade is needed for MTP migration.
Option B -- MSTest.Sdk:
When using MSTest.Sdk, MTP is enabled by default -- no EnableMSTestRunner or OutputType Exe property is needed (the SDK sets both automatically). The only action is: if the project has <UseVSTest>true</UseVSTest>, remove it. That property forces the project to use VSTest instead of MTP.
Add a reference to YTest.MTP.XUnit2 -- this package provides MTP support for xUnit.net v2 projects without requiring an upgrade to xunit.v3. You must also set OutputType to Exe:
Note: YTest.MTP.XUnit2 preserves the VSTest --filter syntax, so no filter migration is needed for xUnit.net v2. It also supports --settings for runsettings (xunit-specific configurations only), xunit.runner.json, TRX reporting via --report-trx, and --treenode-filter.
xUnit.net v3
xUnit.net v3 (xunit.v3 package) has built-in MTP support. Enable it with:
Important: xUnit.net v3 on MTP does NOT support the VSTest --filter syntax. You must translate filters to xUnit.net v3's native filter options (see Step 5).
Step 4: Configure dotnet test integration
The dotnet test integration depends on the .NET SDK version.
.NET 10 SDK and later (recommended)
Use the native MTP mode by adding a test section to global.json:
Important: In this mode, you must use -- to separate dotnet test build arguments from MTP arguments. For example: dotnet test --no-build -- --list-tests.
Step 5: Update dotnet test command-line arguments
VSTest-specific arguments must be translated to MTP equivalents. Build-related arguments (-c, -f, --no-build, --nologo, -v, etc.) are unchanged.
MSTest, NUnit, and xUnit.net v2 (with YTest.MTP.XUnit2): The VSTest --filter syntax is identical on both VSTest and MTP. No changes needed.
xUnit.net v3 (native MTP): xUnit.net v3 does NOT support the VSTest --filter syntax on MTP. See the VSTest → MTP filter translation section in the filter-syntax skill for the complete translation table. Key translation example:
shell
# VSTest
dotnet test --filter "FullyQualifiedName~IntegrationTests&Category=Smoke"
# xUnit.net v3 MTP -- using individual filters (AND behavior)
dotnet test -- --filter-class *IntegrationTests* --filter-trait "Category=Smoke"
# xUnit.net v3 MTP -- using query language (assembly/namespace/class/method[trait])
dotnet test -- --filter-query "/*/*/*IntegrationTests*/*[Category=Smoke]"
Note: When combining --filter-class and --filter-trait, both conditions must match (AND behavior). For complex expressions, use --filter-query with the path-segment syntax. See the xUnit.net query filter language docs for full reference.
Use environment variable: TESTINGPLATFORM_EXITCODE_IGNORE=8
Step 9: Remove VSTest-only packages (optional)
Once migration is complete and verified, remove packages that are only needed for VSTest:
Microsoft.NET.Test.Sdk -- not needed for MTP (MSTest.Sdk v4 already omits it by default)
xunit.runner.visualstudio -- only needed for VSTest discovery of xUnit.net (not needed when using YTest.MTP.XUnit2)
NUnit3TestAdapter VSTest-only features -- the adapter is still needed but only for the MTP runner
Note: If you need to maintain VSTest compatibility during a transition period, keep these packages.
Step 10: Verify
Run dotnet build -- confirm zero errors
Run dotnet test -- confirm all tests pass
Compare test pass/fail counts to the pre-migration baseline
Run the test executable directly (e.g., ./bin/Debug/net8.0/MyTests.exe) -- confirm it works
Verify CI pipeline produces the expected test result artifacts (TRX files, code coverage, crash dumps)
Test that Test Explorer in Visual Studio (17.14+) or VS Code discovers and runs tests
Validation
All test projects use MTP runner (no VSTest-only configuration remains)
dotnet build completes with zero errors
dotnet test passes all tests and test counts match pre-migration baseline
Test executable runs directly (e.g., ./bin/Debug/net8.0/MyTests.exe)
CI pipeline produces expected test result artifacts (TRX files, code coverage, crash dumps)
Test Explorer in Visual Studio or VS Code discovers and runs tests
No vstest.console.exe invocations remain in CI scripts
<OutputType>Exe</OutputType> is set for all non-MSTest.Sdk test projects
Common Pitfalls
Pitfall
Solution
Mixing VSTest and MTP projects in the same solution
Migrate all test projects together -- mixed mode is unsupported
dotnet test arguments ignored on .NET 9 and earlier
Use -- to separate build args from MTP args: dotnet test -- --report-trx
Exit code 8 on CI without failures
MTP fails when zero tests run; use --ignore-exit-code 8 or fix test discovery
MSTest.Sdk v4 + vstest.console no longer works
MSTest.Sdk v4 no longer adds Microsoft.NET.Test.Sdk -- add it explicitly or switch to dotnet test
Missing <OutputType>Exe</OutputType>
Required for all setups except MSTest.Sdk (which sets it automatically)
Using Condition="'$(IsTestProject)' == 'true'" in Directory.Build.props
IsTestProject is not yet defined when Directory.Build.props is evaluated -- use $(MSBuildProjectName.EndsWith('.Tests')) (or a similar name-based check) instead
Next Steps
Use run-tests for running tests on the new MTP platform
Use mtp-hot-reload for iterative test fixing with hot reload on MTP
Migrate Vstest To Mtp next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
Migrate Vstest To Mtp compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
Migrate Vstest To Mtp this skillrunceel/ReactiveProperty
Use this skill before answering, planning, or editing whenever .NET tests or CI are switching from VSTest to Microsoft.Testing.Platform (MTP), or an MTP migration behaves differently.
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Migrate Vstest To Mtp is an agent skill from runceel/ReactiveProperty.Platform (MTP).
When should I use Migrate Vstest To Mtp?
Migrate Vstest To Mtp fits situations like: user asks to migrate to MTP; switch from VSTest; enable Microsoft.Testing.Platform; mentions EnableMSTestRunner.
How do I install Migrate Vstest To Mtp in Claude Code?
Run `npx skills add runceel/ReactiveProperty --skill migrate-vstest-to-mtp -a claude-code`. Or copy the skill folder (.agents/skills/migrate-vstest-to-mtp in runceel/ReactiveProperty) into .claude/skills/migrate-vstest-to-mtp in your project. Claude Code loads it when a task matches its description.
How do I install Migrate Vstest To Mtp in Codex?
Run `npx skills add runceel/ReactiveProperty --skill migrate-vstest-to-mtp -a codex`. Or copy the skill folder (.agents/skills/migrate-vstest-to-mtp in runceel/ReactiveProperty) into .agents/skills/migrate-vstest-to-mtp in your project. Codex loads it when a task matches its description.
Can I use Migrate Vstest To Mtp in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add runceel/ReactiveProperty --skill migrate-vstest-to-mtp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/migrate-vstest-to-mtp, .gemini/skills/migrate-vstest-to-mtp, .github/skills/migrate-vstest-to-mtp and .opencode/skills/migrate-vstest-to-mtp in your project.
What does Migrate Vstest To Mtp need to run?
Going by SKILL.md and its folder, Migrate Vstest To Mtp needs the command-line tools its instructions call (dotnet).
Does Migrate Vstest To Mtp access the network?
SKILL.md names 2 domains. As links in the text: learn.microsoft.com and xunit.net. This is read from the text; nothing was executed.
Is Migrate Vstest To Mtp safe to install?
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
What licence does Migrate Vstest To Mtp use?
Migrate Vstest To Mtp is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Migrate Vstest To Mtp use?
About 4.3k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
What are the alternatives to Migrate Vstest To Mtp?
Skills that share tags, products or a category with Migrate Vstest To Mtp: Migrate Vstest To Mtp (dotnet/skills, 5.6k stars), Migrate Dotnet10 To Dotnet11 (dotnet/skills, 5.6k stars), Writing gotest Tests (mvrahden/go-test, 128 stars) and Code Patterns (Aedelon/claude-code-blueprint, 120 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Migrate Vstest To Mtp?
runceel (a GitHub user) maintains it in runceel/ReactiveProperty, which has 944 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on August 31, 2026.
Source: runceel/ReactiveProperty on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.