thread-abort-migration
OfficialModernize 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.Abortpatterns: Detects usage ofThread.Abort,ThreadAbortException,Thread.ResetAbort, andThread.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.EndandResponse.Redirect(url, true). - Use Case: Migrating a .NET Framework application to .NET 8 that uses
Thread.Abortfor timeouts or cleanup, ensuring it functions correctly without throwingPlatformNotSupportedException.
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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.