Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)40k · #7181

dotnet-upgrade

Skill này làm gì

Công cụ này giúp phân tích và lập kế hoạch nâng cấp các dự án phần mềm lên phiên bản .NET mới hơn. Nó xác định những gì cần thay đổi, gợi ý cách làm và giúp tổ chức quy trình.

Khi nào nên dùng

  • ✓Khi bạn cần cập nhật một dự án cũ lên phiên bản .NET mới hơn.
  • ✓Để hiểu độ phức tạp và rủi ro của việc nâng cấp.
  • ✓Để lập kế hoạch các bước cần thiết và tổ chức công việc nâng cấp.

Liên kết skill

https://github.com/github/awesome-copilot/blob/main/skills/dotnet-upgrade/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/dotnet-upgrade/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi muốn nâng cấp dự án của mình lên .NET 8. Bạn có thể giúp tôi lập kế hoạch các bước và xác định những vấn đề tiềm ẩn không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ kiểm tra code và các thư viện phụ thuộc để tìm phần cần cập nhật. Nó gợi ý thứ tự nâng cấp các dự án tốt nhất và các công cụ nên dùng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 Assistant and API Analyzer."

  • name: "API Replacement Strategy" prompt: "Recommend replacement APIs or libraries for known breaking areas. Review configuration changes such as Startup.cs → Program.cs refactoring."

  • name: "Regression Testing Focus" prompt: "Suggest regression testing scenarios focused on upgraded API endpoints or services. Create test plans for critical functionality validation."

Version Control & Commit Strategy

  • name: "Branching Strategy Planning"

…

Câu hỏi thường gặp

.NET Framework và .NET Core/5/6/7/8 là gì?

.NET Framework là phiên bản cũ hơn, còn .NET Core và các phiên bản sau (5, 6, 7, 8) là các phiên bản hiện đại, được khuyến nghị cho phát triển mới và nâng cấp.

Dependencies là gì?

Dependencies là các phần mềm khác (thư viện hoặc gói) mà dự án của bạn dùng để hoạt động. Việc nâng cấp có thể đòi hỏi thay đổi hoặc cập nhật các dependency này.

.NET Upgrade Assistant là gì?

Đó là một công cụ chính thức của Microsoft giúp tự động hóa một phần quy trình nâng cấp dự án .NET.

Chi tiết

Mô tả gốc của tác giả

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

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7181
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự