mtp-hot-reload

Enable Microsoft Testing Platform hot reload for .NET test projects.

2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/sayedihashimi/copilot-skill-eval --skill mtp-hot-reload-sayedihashimi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mtp-hot-reload
Source: https://github.com/sayedihashimi/copilot-skill-eval/tree/main/examples/aspnet-razor-pages/plugins/dotnet-skills/dotnet-test/skills/mtp-hot-reload
Command: npx skills add https://github.com/sayedihashimi/copilot-skill-eval --skill mtp-hot-reload-sayedihashimi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Reduces iteration time for failing tests by enabling Microsoft Testing Platform hot reload during development.

Core Features & Use Cases

  • Setup and use Microsoft Testing Platform hot reload in .NET projects (NuGet package Microsoft.Testing.Extensions.HotReload, environment variable, and launchSettings.json).
  • Iterate on test fixes quickly: edit code and have the test host automatically reload and re-run.
  • Use in workflows for MSTest/NUnit/xUnit projects using MTP to minimize rebuild overhead.

Quick Start

Install the Microsoft.Testing.Extensions.HotReload package, enable TESTINGPLATFORM_HOTRELOAD_ENABLED, and run your tests to begin rapid iteration.

Frequently Asked Questions about mtp-hot-reload

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

FAQPage Schema
How do I enable hot reload for .NET tests to speed up iteration on failing tests?

To enable hot reload for .NET tests, install the Microsoft.Testing.Extensions.HotReload package and set the TESTINGPLATFORM_HOTRELOAD_ENABLED environment variable. This allows the test host to automatically reload and re-run edited test code without a full rebuild.

Does Microsoft Testing Platform hot reload work with NUnit and xUnit projects?

Yes, Microsoft Testing Platform hot reload works with MSTest, NUnit, and xUnit projects. It is applicable to any .NET project using MTP, allowing you to minimize rebuild overhead and rapidly iterate on test fixes across these frameworks.

What is the process to configure hot reload using launchSettings.json for .NET tests?

Configuring hot reload via launchSettings.json involves adding the Microsoft.Testing.Extensions.HotReload package and setting the TESTINGPLATFORM_HOTRELOAD_ENABLED variable in your launch profile. Run tests in console or host mode so the test host stays active and applies code changes instantly.

Why are my .NET tests not picking up code changes when using hot reload?

Hot reload requires running tests in console or host mode so the test process stays active for changes. Ensure the Microsoft.Testing.Extensions.HotReload package is installed and the TESTINGPLATFORM_HOTRELOAD_ENABLED environment variable is set to allow the test host to automatically reload.

Can I use Microsoft Testing Platform hot reload to minimize rebuild overhead during test development?

Yes, Microsoft Testing Platform hot reload minimizes rebuild overhead by keeping the test host active and automatically reloading edited code. This speeds up the cycle of editing test code and re-running tests, which is ideal for iterating on failing tests during development.