$npx -y skills add github/awesome-copilot --skill dotnet-upgradeReady-to-use prompts for comprehensive .NET framework upgrade analysis and execution
| 1 | # Project Discovery & Assessment |
| 2 | - name: "Project Classification Analysis" |
| 3 | 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." |
| 4 | |
| 5 | - name: "Dependency Compatibility Review" |
| 6 | prompt: "Review external and internal dependencies for framework compatibility. Determine the upgrade complexity based on dependency graph depth." |
| 7 | |
| 8 | - name: "Legacy Package Detection" |
| 9 | prompt: "Identify legacy `packages.config` projects needing migration to `PackageReference` format." |
| 10 | |
| 11 | # Upgrade Strategy & Sequencing |
| 12 | - name: "Project Upgrade Ordering" |
| 13 | 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." |
| 14 | |
| 15 | - name: "Incremental Strategy Planning" |
| 16 | prompt: "Propose an incremental upgrade strategy with rollback checkpoints. Evaluate the use of **Upgrade Assistant** or **manual upgrades** based on project structure." |
| 17 | |
| 18 | - name: "Progress Tracking Setup" |
| 19 | prompt: "Generate an upgrade checklist for tracking build, test, and deployment readiness across all projects." |
| 20 | |
| 21 | # Framework Targeting & Code Adjustments |
| 22 | - name: "Target Framework Selection" |
| 23 | prompt: "Suggest the correct `TargetFramework` for each project (e.g., `net8.0`). Review and update deprecated SDK or build configurations." |
| 24 | |
| 25 | - name: "Code Modernization Analysis" |
| 26 | prompt: "Identify code patterns needing modernization (e.g., `WebHostBuilder` → `HostBuilder`). Suggest replacements for deprecated .NET APIs and third-party libraries." |
| 27 | |
| 28 | - name: "Async Pattern Conversion" |
| 29 | prompt: "Recommend conversion of synchronous calls to async where appropriate for improved performance and scalability." |
| 30 | |
| 31 | # NuGet & Dependency Management |
| 32 | - name: "Package Compatibility Analysis" |
| 33 | prompt: "Analyze outdated or incompatible NuGet packages and suggest compatible versions. Identify third-party libraries that lack .NET 8 support and provide migration paths." |
| 34 | |
| 35 | - name: "Shared Dependency Strategy" |
| 36 | prompt: "Recommend strategies for handling shared dependency upgrades across projects. Evaluate usage of legacy packages and suggest alternatives in Microsoft-supported namespaces." |
| 37 | |
| 38 | - name: "Transitive Dependency Review" |
| 39 | prompt: "Review transitive dependencies and potential version conflicts after upgrade. Suggest resolution strategies for dependency conflicts." |
| 40 | |
| 41 | # CI/CD & Build Pipeline Updates |
| 42 | - name: "Pipeline Configuration Analysis" |
| 43 | prompt: "Analyze YAML build definitions for SDK version pinning and recommend updates. Suggest modifications for `UseDotNet@2` and `NuGetToolInstaller` tasks." |
| 44 | |
| 45 | - name: "Build Pipeline Modernization" |
| 46 | prompt: "Generate updated build pipeline snippets for .NET 8 migration. Recommend validation builds on feature branches before merging to main." |
| 47 | |
| 48 | - name: "CI Automation Enhancement" |
| 49 | prompt: "Identify opportunities to automate test and build verification in CI pipelines. Suggest strategies for continuous integration validation." |
| 50 | |
| 51 | # Testing & Validation |
| 52 | - name: "Build Validation Strategy" |
| 53 | prompt: "Propose validation checks to ensure the upgraded solution builds and runs successfully. Recommend automated test execution for unit and integration suites post-upgrade." |
| 54 | |
| 55 | - name: "Service Integration Verification" |
| 56 | prompt: "Generate validation steps to verify logging, telemetry, and service connectivity. Suggest strategies for verifying backward compatibility and runtime behavior." |
| 57 | |
| 58 | - name: "Deployment Readiness Check" |
| 59 | prompt: "Recommend UAT deployment verification steps before production rollout. Create comprehensive testing scenarios for upgraded components." |
| 60 | |
| 61 | # Breaking Change Analysis |
| 62 | - name: "API Deprecation Detection" |
| 63 | prompt: "Identify deprecated APIs or removed namespaces between target versions. Suggest automated scanning using `.NET Upgrade Assistant` and API Analyzer." |
| 64 | |
| 65 | - name: "API Replacement Strategy" |
| 66 | prompt: "Recommend replacement APIs or libraries for known breaking areas. Review configuration changes such as `Startup.cs` → `Program.cs` refactoring." |
| 67 | |
| 68 | - name: "Regression Testing Focus" |
| 69 | prompt: "Suggest regression testing scenarios focused on upgraded API endpoints or services. Create test plans for critical functionality validation." |
| 70 | |
| 71 | # Version Control & Commit Strategy |
| 72 | - name: "Branching Strategy Planning" |
| 73 | prompt: "Recommend branching strategy for safe upgrade with rollback capability. Generate commit templates for partial and complete project upgrades." |
| 74 | |
| 75 | - name: "PR Structure Optimization" |
| 76 | prompt: "Suggest best practices for creating structured PRs (`Upgrade to .NET [Version]`). Identify tagging strategies for PRs involving breaking changes." |
| 77 | |
| 78 | - name: "Code Revie |