dotnet-enable-testing-platform

Create or merge global.json to enable Microsoft Testing Platform for .NET solutions.

6|2|Updated Aug 14, 2025
One-click install
npx skills add https://github.com/Im5tu/claude --skill dotnet-enable-testing-platform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-enable-testing-platform
Source: https://github.com/Im5tu/claude/tree/main/skills/dotnet-enable-testing-platform
Command: npx skills add https://github.com/Im5tu/claude --skill dotnet-enable-testing-platform

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill configures a .NET solution to use the Microsoft Testing Platform runner by creating or merging a global.json file.

Core Features & Use Cases

  • Create or update global.json to set the test runner to Microsoft.Testing.Platform.
  • Merge with existing global.json content while preserving sdk, msbuild-sdks, and other sections.
  • Validate the configuration by running dotnet build and dotnet test, reporting the results and any errors.

Quick Start

Run this skill in a directory containing a .sln file to automatically create or update global.json with the Microsoft.Testing.Platform runner. If a global.json already exists, it will be merged without removing existing configuration. Example: dotnet build dotnet test

Frequently Asked Questions about dotnet-enable-testing-platform

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

FAQPage Schema
How do I enable the Microsoft Testing Platform runner for my .NET solution?

To enable the Microsoft Testing Platform runner, you need a global.json file in your solution directory. This Skill automates creating or updating global.json to set the test runner, preserving existing configurations like sdk and msbuild-sdks sections.

Will updating global.json remove my existing SDK and MSBuild settings?

Updating global.json with this Skill will not remove existing SDK and MSBuild settings. It merges the new Microsoft Testing Platform runner configuration into your existing global.json file, preserving other fields like sdk and msbuild-sdks sections.

What do I need to run the dotnet testing platform migration?

To run the dotnet testing platform migration, you need a .NET solution with a .sln file in the current directory. The Skill automatically detects the solution file and updates or creates the necessary global.json configuration.

How does this Skill verify the test runner configuration works?

The Skill verifies the test runner configuration by automatically running dotnet build and dotnet test commands. It enforces JSON validity and reports the build and test results, including any errors encountered during the validation process.

Can I use this global.json migration tool without a .sln file?

You cannot use this global.json migration tool without a .sln file. The Skill specifically requires a .NET solution file to be present in the current directory to correctly apply the Microsoft Testing Platform runner configuration.

What happens if my global.json is invalid after enabling the testing platform?

If your global.json is invalid after enabling the testing platform, the Skill will identify the issue during its validation phase. It attempts a dotnet build and dotnet test run, reporting any configuration errors or build failures that occur.