dotnet-modernize

Analyze .NET codebases for outdated frameworks, packages, and API patterns.

71|10|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-modernize-wshaddix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-modernize
Source: https://github.com/wshaddix/dotnet-skills/tree/main/skills/dotnet-modernize
Command: npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-modernize-wshaddix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify outdated practices, dependencies, and configurations in .NET projects, guiding developers toward modern, efficient, and secure code.

Core Features & Use Cases

  • Target Framework Analysis: Detects outdated or end-of-life Target Framework Monikers (TFMs).
  • Dependency Auditing: Flags deprecated, superseded, or vulnerable NuGet packages.
  • Code Pattern Modernization: Identifies legacy C# patterns and suggests modern alternatives.
  • Build Configuration Check: Verifies the presence of modern build infrastructure like Central Package Management and .editorconfig.
  • Use Case: A developer can use this skill to quickly assess a legacy .NET Framework project and get a prioritized list of modernization steps before undertaking a migration.

Quick Start

Analyze the current project for outdated Target Frameworks and deprecated packages.

Frequently Asked Questions about dotnet-modernize

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

FAQPage Schema
How do I analyze a .NET codebase for modernization opportunities?

To modernize a .NET codebase, you can analyze project files and code to detect outdated target frameworks, deprecated NuGet packages, and legacy API patterns, receiving actionable recommendations for upgrading to current best practices.

What are outdated Target Framework Monikers in legacy .NET projects?

Outdated Target Framework Monikers (TFMs) are end-of-life framework identifiers in .NET project files. Analyzing them helps identify legacy targets that require upgrading to modern, supported .NET versions for better security and efficiency.

How do I check for deprecated or vulnerable NuGet packages in C# projects?

You can check for deprecated or vulnerable NuGet packages by auditing project dependencies. This process flags superseded packages and suggests modern alternatives to ensure your C# codebase remains secure and efficient.

Can I detect missing Central Package Management and .editorconfig files?

Yes, you can verify the presence of modern build infrastructure by checking project configurations. This detects whether Central Package Management and .editorconfig files are implemented to enforce consistent build and coding standards.

What is the best way to identify legacy C# patterns for refactoring?

The best way to identify legacy C# patterns for refactoring is scanning the codebase for superseded API usage. This flags outdated coding practices and provides actionable recommendations for adopting modern C# alternatives.