MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Dotnet-Upgrade

Dotnet-Upgrade是一款code方向的AI技能,核心价值是Ready-to-use prompts for comprehensive ,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Ready-to-use prompts for comprehensive .NET framework upgrade analysis and execution

Last verified on: 2026-05-30
mkdir -p ./skills/dotnet-upgrade && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/dotnet-upgrade/SKILL.md -o ./skills/dotnet-upgrade/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Project Discovery & Assessment

- name: "Project Classification Analysis"

prompt: "Identify all projects in the solution and classify them by type (`.NET Framework`, `.NET Core`, `.NET Standard`). Analyze each `.csproj` for its current `TargetFramework` and SDK usage."


- name: "Dependency Compatibility Review"

prompt: "Review external and internal dependencies for framework compatibility. Determine the upgrade complexity based on dependency graph depth."


- name: "Legacy Package Detection"

prompt: "Identify legacy `packages.config` projects needing migration to `PackageReference` format."


# Upgrade Strategy & Sequencing

- name: "Project Upgrade Ordering"

prompt: "Recommend a project upgrade order from least to most dependent components. Suggest how to isolate class library upgrades before API or Azure Function migrations."


- name: "Incremental Strategy Planning"

prompt: "Propose an incremental upgrade strategy with rollback checkpoints. Evaluate the use of **Upgrade Assistant** or **manual upgrades** based on project structure."


- name: "Progress Tracking Setup"

prompt: "Generate an upgrade checklist for tracking build, test, and deployment readiness across all projects."


# Framework Targeting & Code Adjustments

- name: "Target Framework Selection"

prompt: "Suggest the correct `TargetFramework` for each project (e.g., `net8.0`). Review and update deprecated SDK or build configurations."


- name: "Code Modernization Analysis"

prompt: "Identify code patterns needing modernization (e.g., `WebHostBuilder` → `HostBuilder`). Suggest replacements for deprecated .NET APIs and third-party libraries."


- name: "Async Pattern Conversion"

prompt: "Recommend conversion of synchronous calls to async where appropriate for improved performance and scalability."


# NuGet & Dependency Management

- name: "Package Compatibility Analysis"

prompt: "Analyze outdated or incompatible NuGet packages and suggest compatible versions. Identify third-party libraries that lack .NET 8 support and provide migration paths."


- name: "Shared Dependency Strategy"

prompt: "Recommend strategies for handling shared dependency upgrades across projects. Evaluate usage of legacy packages and suggest alternatives in Microsoft-supported namespaces."


- name: "Transitive Dependency Review"

prompt: "Review transitive dependencies and potential version conflicts after upgrade. Suggest resolution strategies for dependency conflicts."


# CI/CD & Build Pipeline Updates

- name: "Pipeline Configuration Analysis"

prompt: "Analyze YAML build definitions for SDK version pinning and recommend updates. Suggest modifications for `UseDotNet@2` and `NuGetToolInstaller` tasks."


- name: "Build Pipeline Modernization"

prompt: "Generate updated build pipeline snippets for .NET 8 migration. Recommend validation builds on feature branches before merging to main."


- name: "CI Automation Enhancement"

prompt: "Identify opportunities to automate test and build verification in CI pipelines. Suggest strategies for continuous integration validation."


# Testing & Validation

- name: "Build Validation Strategy"

prompt: "Propose validation checks to ensure the upgraded solution builds and runs successfully. Recommend automated test execution for unit and integration suites post-upgrade."


- name: "Service Integration Verification"

prompt: "Generate validation steps to verify logging, telemetry, and service connectivity. Suggest strategies for verifying backward compatibility and runtime behavior."


- name: "Deployment Readiness Check"

prompt: "Recommend UAT deployment verification steps before production rollout. Create comprehensive testing scenarios for upgraded components."


# Breaking Change Analysis

- name: "API Deprecation Detection"

prompt: "Identify deprecated APIs or removed namespaces between target versions. Suggest automated scanning using `.NET Upgrade Assi

🎯 Best For

  • Claude users
  • GitHub Copilot users
  • Software engineers
  • Development teams
  • Tech leads

💡 Use Cases

  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Dotnet-Upgrade to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Is Dotnet-Upgrade compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Dotnet-Upgrade?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Dotnet-Upgrade?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/dotnet-upgrade/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills