मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)5.8k · #14645

migrate-dotnet10-to-dotnet11

यह क्या करती है

यह स्किल .NET 10 प्रोजेक्ट या सॉल्यूशन को .NET 11 में अपग्रेड करती है और इस दौरान आने वाले ब्रेकिंग चेंजेस ठीक करती है। यह उन टीमों के लिए है जो मौजूदा ऐप को नए वर्शन पर ले जा रही हैं। स्किल बताती है कि लिखे जाने के समय .NET 11 प्रीव्यू में था।

कब इस्तेमाल करें

  • ✓जब आप प्रोजेक्ट का टार्गेट net10.0 से net11.0 करना चाहते हों।
  • ✓जब .NET 11 SDK पर अपडेट करने के बाद बिल्ड एरर या नई चेतावनियाँ आएँ।
  • ✓जब .NET 11 पर जाने के बाद रनटाइम या फ़्रेमवर्क का व्यवहार बदले।

Skill का लिंक

https://github.com/dotnet/skills/blob/main/plugins/dotnet-upgrade/skills/migrate-dotnet10-to-dotnet11/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/dotnet/skills/blob/main/plugins/dotnet-upgrade/skills/migrate-dotnet10-to-dotnet11/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे प्रोजेक्ट को .NET 10 से .NET 11 में अपग्रेड कीजिए और अपग्रेड से आने वाली बिल्ड एरर ठीक कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट प्रोजेक्ट की जाँच करता है, टार्गेट फ़्रेमवर्क अपडेट करता है, ब्रेकिंग चेंजेस को क्रम से संभालता है, और जब तक नतीजे साफ़ न हों तब तक बिल्ड और टेस्ट चलाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

.NET 10 → .NET 11 Migration

Migrate a .NET 10 project or solution to .NET 11, systematically resolving all breaking changes. The outcome is a project targeting net11.0 that builds cleanly, passes tests, and accounts for every behavioral, source-incompatible, and binary-incompatible change introduced in .NET 11.

Note: .NET 11 is currently in preview. This skill covers breaking changes documented through Preview 3.

When to Use

  • Upgrading TargetFramework from net10.0 to net11.0
  • Resolving build errors or new warnings after updating the .NET 11 SDK
  • Adapting to behavioral changes in .NET 11 runtime, ASP.NET Core 11, or EF Core 11
  • Updating CI/CD pipelines, Dockerfiles, or deployment scripts for .NET 11
  • Fixing C# 15 compiler breaking changes after SDK upgrade

When Not to Use

  • The project already targets net11.0 and builds cleanly — migration is done
  • Upgrading from .NET 9 or earlier — address the .NET 9→10 breaking changes first
  • Migrating from .NET Framework — that is a separate, larger effort
  • Greenfield projects that start on .NET 11 (no migration needed)

Inputs

Input Required Description
Project or solution path Yes The .csproj, .sln, or .slnx entry point to migrate
Build command No How to build (e.g., dotnet build, a repo build script). Auto-detect if not provided
Test command No How to run tests (e.g., dotnet test). Auto-detect if not provided
Project type hints No Whether the project uses ASP.NET Core, EF Core, Cosmos DB, etc. Auto-detect from PackageReferences and SDK attributes if not provided

Workflow

Answer directly from the loaded reference documents for information about .NET 11 breaking changes. You may inspect the local repository (project/solution files, source code, configuration, build/test scripts) as needed to determine which changes apply. Do not fetch web pages or other external sources for breaking change information — the loaded references are the authoritative source. Focus on identifying which breaking changes apply and providing concrete fixes.

Commit strategy: Commit at each logical boundary — after updating the TFM (Step 2), after resolving build errors (Step 3), after addressing behavioral changes (Step 4), and after updating infrastructure (Step 5). This keeps each commit focused and reviewable.

Step 1: Assess the project

  1. Identify how the project is built and tested. Look for build scripts, .sln/.slnx files, or individual .csproj files.
  2. Run dotnet --version to confirm the .NET 11 SDK is installed. If it is not, stop and inform the user.
  3. Determine which technology areas the project uses by examining:
    • SDK attribute: Microsoft.NET.Sdk.Web → ASP.NET Core; Microsoft.NET.Sdk.WindowsDesktop with <UseWPF> or <UseWindowsForms> → WPF/WinForms
    • PackageReferences: Microsoft.EntityFrameworkCore.* → EF Core; Microsoft.EntityFrameworkCore.Cosmos → Cosmos DB provider
    • Dockerfile presence → Container changes relevant
    • Cryptography API usage → DSA on macOS affected; AIA cert download changes relevant
    • Compression API usage → DeflateStream/GZipStream/ZipArchive changes relevant
    • TAR API usage → Header checksum validation and HardLink entry changes relevant
    • NamedPipeClientStream usage with SafePipeHandle → SYSLIB0063 constructor obsoletion relevant
    • BackgroundService usage → Unhandled exceptions now stop the host
    • Microsoft.OpenApi direct usage → v3 API breaking changes in ASP.NET Core OpenAPI
    • EF Core SQL Server with Entra ID auth → SqlClient 7.0 auth dependency changes
    • NativeAOT native libraries on Unix → Output filename prefix changed
  4. Record which reference documents are relevant (see the reference loading table in Step 3).
  5. Do a clean build (dotnet build --no-incremental or delete bin/obj) on the current net10.0 target to establish a clean baseline. Record any pre-existing warnings.

Step 2: Update the Target Framework

  1. In each .csproj (or Directory.Build.props if centralized), change:

    <TargetFramework>net10.0</TargetFramework>
    

    to:

    <TargetFramework>net11.0</TargetFramework>
    

    For multi-targeted projects, add net11.0 to <TargetFrameworks> or replace net10.0.

  2. Update all Microsoft.Extensions.*, Microsoft.AspNetCore.*, `Microsoft.EntityFrameworkCore

अक्सर पूछे जाने वाले सवाल

क्या यह .NET 9 प्रोजेक्ट में मदद करती है?

नहीं। यह .NET 10 से .NET 11 के चरण के लिए है, और पुराने प्रोजेक्ट को पहले अपना अलग माइग्रेशन चाहिए।

क्या यह पाइपलाइन और Dockerfile भी अपडेट करती है?

हाँ। स्किल .NET 11 के लिए CI और डिप्लॉयमेंट फ़ाइलें अपडेट करना भी कवर करती है।

क्या .NET 11 अब स्थिर है?

स्किल प्रीव्यू रिलीज़ में दर्ज बदलाव कवर करती है, इसलिए प्रोडक्शन ऐप अपग्रेड करने से पहले मौजूदा रिलीज़ स्थिति जाँच लें।

जानकारी

लेखक का मूल विवरण

Migrate a .NET 10 project or solution to .NET 11 and resolve all breaking changes. This is a MIGRATION skill — use it when upgrading from .NET 10 to .NET 11, NOT for writing new programs. USE FOR: upgrading TargetFramework from net10.0 to net11.0, fixing build errors after updating the .NET 11 SDK, resolving source-breaking and behavioral changes in .NET 11 runtime, C# 15 compiler, and EF Core 11, adapting to updated minimum hardware requirements (x86-64-v2, Arm64 LSE), and updating CI/CD pipelines and Dockerfiles for .NET 11. DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 9 or

repo: dotnet/skills

लोकप्रियता

GitHub स्टार
5.8k
रैंकिंग में स्थान
#14645
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills