thread-abort-migration

Official

Modernize Thread.Abort usage.

Authordotnet
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps migrate legacy .NET Framework code that relies on Thread.Abort to the cooperative cancellation model required in modern .NET versions, preventing runtime errors and improving application stability.

Core Features & Use Cases

  • Identify Thread.Abort patterns: Detects usage of Thread.Abort, ThreadAbortException, Thread.ResetAbort, and Thread.Interrupt.
  • Guide cooperative cancellation: Provides strategies to replace preemptive thread termination with cooperative cancellation using CancellationToken.
  • Handle ASP.NET specific cases: Addresses migration of Response.End and Response.Redirect(url, true).
  • Use Case: Migrating a .NET Framework application to .NET 8 that uses Thread.Abort for timeouts or cleanup, ensuring it functions correctly without throwing PlatformNotSupportedException.

Quick Start

Use the thread-abort-migration skill to guide the modernization of code that calls Thread.Abort in the 'MyProject.csproj' project.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: thread-abort-migration
Download link: https://github.com/dotnet/skills/archive/main.zip#thread-abort-migration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.