mtp-hot-reload

Configures Microsoft Testing Platform hot reload to iterate on failing tests without rebuilding.

1|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/D1ssolve/craft-agents --skill mtp-hot-reload-d1ssolve
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mtp-hot-reload
Source: https://github.com/D1ssolve/craft-agents/tree/main/skills/mtp-hot-reload
Command: npx skills add https://github.com/D1ssolve/craft-agents --skill mtp-hot-reload-d1ssolve

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Fixing failing tests normally requires a full rebuild and test run for every code change, which slows down the fix-verify loop. This Skill sets up Microsoft Testing Platform (MTP) hot reload so the test host stays running and automatically re-runs affected tests when code changes. ## Core Features & Use Cases - Platform Detection: Verifies the project uses Microsoft Testing Platform rather than VSTest, since hot reload only works with MTP. - Guided Setup: Walks through installing the Microsoft.Testing.Extensions.HotReload NuGet package and enabling the TESTINGPLATFORM_HOTRELOAD_ENABLED environment variable via shell or launchSettings.json. - Iterative Fix Workflow: Runs the test project with dotnet run, optionally filtered to specific failing tests for MSTest, NUnit, xUnit v3, or TUnit, then re-runs tests automatically on each code edit. - Use Case: A developer has three failing xUnit tests. After setup, they run the test project once, edit the production code, and watch the tests re-run automatically until all pass, then confirm with a full dotnet test. ## Quick Start Set up MTP hot reload in my test project so I can iterate on my failing tests without rebuilding between changes.

Frequently Asked Questions about mtp-hot-reload

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run .NET tests without rebuilding after each code change?

Use Microsoft Testing Platform hot reload: install the Microsoft.Testing.Extensions.HotReload package, set TESTINGPLATFORM_HOTRELOAD_ENABLED=1, and run the test project with dotnet run. The test host stays running and re-runs affected tests automatically when you edit code.

How to set up MTP hot reload for failing tests?

Add the Microsoft.Testing.Extensions.HotReload NuGet package to your test project, enable the TESTINGPLATFORM_HOTRELOAD_ENABLED environment variable in your shell or launchSettings.json, then run dotnet run --project <path>. Pass a framework-specific filter after -- to target specific failing tests.

Does hot reload work with VSTest or dotnet test?

No, hot reload requires Microsoft Testing Platform and does not work with VSTest. You must run the test project directly with dotnet run instead of dotnet test, since hot reload operates in console mode only.

Can I use hot reload in Visual Studio Test Explorer?

MTP hot reload currently works in console mode only, with no Test Explorer integration in Visual Studio or VS Code. Visual Studio has its own separate built-in Test Explorer hot reload feature, which is a different capability.

Why does hot reload not pick up my code changes?

Some changes are unsupported rude edits, such as adding new types or changing method signatures, and require restarting the test host. Also verify the environment variable is set and you used dotnet run rather than dotnet test.