[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CVC08Z65CFJB40D1D4XKRN":3,"skill-same:01M7CVC08Z65CFJB40D1D4XKRN":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CVC08Z65CFJB40D1D4XKRN","migrate-dotnet10-to-dotnet11",null,"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\u002FCD pipelines and Dockerfiles for .NET 11. DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 9 or earlier, greenfield .NET 11 projects, or cosmetic modernization unrelated to the upgrade. NOTE: .NET 11 is in preview. Covers breaking changes through Preview 3.","deadmade\u002Fdead-agent-skills","deadmade","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130925709?v=4","01M7CTQ65AGYR4J9K9TX0YR9V3","01M7CTQ66B4VMJFEDZP4EKKE6K",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-dotnet10-to-dotnet11\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: migrate-dotnet10-to-dotnet11\ndescription: >\n  Migrate a .NET 10 project or solution to .NET 11 and resolve all breaking changes.\n  This is a MIGRATION skill — use it when upgrading from .NET 10 to .NET 11,\n  NOT for writing new programs.\n  USE FOR: upgrading TargetFramework from net10.0 to net11.0, fixing build errors\n  after updating the .NET 11 SDK, resolving source-breaking and behavioral changes\n  in .NET 11 runtime, C# 15 compiler, and EF Core 11, adapting to updated minimum\n  hardware requirements (x86-64-v2, Arm64 LSE), and updating CI\u002FCD pipelines and\n  Dockerfiles for .NET 11.\n  DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 9 or earlier,\n  greenfield .NET 11 projects, or cosmetic modernization unrelated to the upgrade.\n  NOTE: .NET 11 is in preview. Covers breaking changes through Preview 3.\nlicense: MIT\n---\n\n# .NET 10 → .NET 11 Migration\n\nMigrate 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.\n\n> **Note:** .NET 11 is currently in preview. This skill covers breaking changes documented through Preview 3.\n\n## When to Use\n\n- Upgrading `TargetFramework` from `net10.0` to `net11.0`\n- Resolving build errors or new warnings after updating the .NET 11 SDK\n- Adapting to behavioral changes in .NET 11 runtime, ASP.NET Core 11, or EF Core 11\n- Updating CI\u002FCD pipelines, Dockerfiles, or deployment scripts for .NET 11\n- Fixing C# 15 compiler breaking changes after SDK upgrade\n\n## When Not to Use\n\n- The project already targets `net11.0` and builds cleanly — migration is done\n- Upgrading from .NET 9 or earlier — address the .NET 9→10 breaking changes first\n- Migrating from .NET Framework — that is a separate, larger effort\n- Greenfield projects that start on .NET 11 (no migration needed)\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Project or solution path | Yes | The `.csproj`, `.sln`, or `.slnx` entry point to migrate |\n| Build command | No | How to build (e.g., `dotnet build`, a repo build script). Auto-detect if not provided |\n| Test command | No | How to run tests (e.g., `dotnet test`). Auto-detect if not provided |\n| 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 |\n\n## Workflow\n\n> **Answer directly from the loaded reference documents for information about .NET 11 breaking changes.** You may inspect the local repository (project\u002Fsolution files, source code, configuration, build\u002Ftest 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.\n>\n> **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.\n\n### Step 1: Assess the project\n\n1. Identify how the project is built and tested. Look for build scripts, `.sln`\u002F`.slnx` files, or individual `.csproj` files.\n2. Run `dotnet --version` to confirm the .NET 11 SDK is installed. If it is not, stop and inform the user.\n3. Determine which technology areas the project uses by examining:\n   - **SDK attribute**: `Microsoft.NET.Sdk.Web` → ASP.NET Core; `Microsoft.NET.Sdk.WindowsDesktop` with `\u003CUseWPF>` or `\u003CUseWindowsForms>` → WPF\u002FWinForms\n   - **PackageReferences**: `Microsoft.EntityFrameworkCore.*` → EF Core; `Microsoft.EntityFrameworkCore.Cosmos` → Cosmos DB provider\n   - **Dockerfile presence** → Container changes relevant\n   - **Cryptography API usage** → DSA on macOS affected; AIA cert download changes relevant\n   - **Compression API usage** → DeflateStream\u002FGZipStream\u002FZipArchive changes relevant\n   - **TAR API usage** → Header checksum validation and HardLink entry changes relevant\n   - **`NamedPipeClientStream` usage with `SafePipeHandle`** → SYSLIB0063 constructor obsoletion relevant\n   - **`BackgroundService` usage** → Unhandled exceptions now stop the host\n   - **`Microsoft.OpenApi` direct usage** → v3 API breaking changes in ASP.NET Core OpenAPI\n   - **EF Core SQL Server with Entra ID auth** → SqlClient 7.0 auth dependency changes\n   - **NativeAOT native libraries on Unix** → Output filename prefix changed\n4. Record which reference documents are relevant (see the reference loading table in Step 3).\n5. Do a **clean build** (`dotnet build --no-incremental` or delete `bin`\u002F`obj`) on the current `net10.0` target to establish a clean baseline. Record any pre-existing warnings.\n\n### Step 2: Update the Target Framework\n\n1. In each `.csproj` (or `Directory.Build.props` if centralized), change:\n   ```xml\n   \u003CTargetFramework>net10.0\u003C\u002FTargetFramework>\n   ```\n   to:\n   ```xml\n   \u003CTargetFramework>net11.0\u003C\u002FTargetFramework>\n   ```\n   For multi-targeted projects, add `net11.0` to `\u003CTargetFrameworks>` or replace `net10.0`.\n\n2. Update all `Microsoft.Extensions.*`, `Microsoft.AspNetCore.*`, `Microsoft.EntityFrameworkCore.*`, and other Microsoft package references to their 11.0.x versions. If using Central Package Management (`Directory.Packages.props`), update versions there.\n\n3. Run `dotnet restore`. Fix any restore errors before continuing.\n\n4. Run `dotnet build`. Capture all errors and warnings — these will be addressed in Step 3.\n\n### Step 3: Fix source-breaking and compilation changes\n\nLoad reference documents based on the project's technology areas:\n\n| Reference file | When to load |\n|----------------|-------------|\n| `references\u002Fcsharp-compiler-dotnet10to11.md` | Always (C# 15 compiler breaking changes) |\n| `references\u002Fcore-libraries-dotnet10to11.md` | Always (applies to all .NET 11 projects) |\n| `references\u002Fsdk-msbuild-dotnet10to11.md` | Always (SDK and build tooling changes) |\n| `references\u002Faspnetcore-dotnet10to11.md` | Project uses ASP.NET Core (OpenAPI, Blazor) |\n| `references\u002Fefcore-dotnet10to11.md` | Project uses Entity Framework Core |\n| `references\u002Fcryptography-dotnet10to11.md` | Project uses cryptography APIs, mTLS, or targets macOS |\n| `references\u002Fruntime-jit-dotnet10to11.md` | Deploying to older hardware, embedded devices, or using NativeAOT |\n\nWork through each build error systematically. Common patterns:\n\n1. **C# 15 Span collection expression safe-context** — Collection expressions of `Span\u003CT>`\u002F`ReadOnlySpan\u003CT>` type now have `declaration-block` safe-context. Code assigning span collection expressions to variables in outer scopes will error. Use array type or move the expression to the correct scope.\n\n2. **`ref readonly` delegates\u002Flocal functions need `InAttribute`** — If synthesizing delegates from `ref readonly`-returning methods or using `ref readonly` local functions, ensure `System.Runtime.InteropServices.InAttribute` is available.\n\n3. **`nameof(this.)` in attributes** — Remove `this.` qualifier; use `nameof(P)` instead of `nameof(this.P)`.\n\n4. **`with()` in collection expressions (C# 15)** — `with(...)` is now treated as constructor arguments, not a method call. Use `@with(...)` to call a method named `with`.\n\n5. **Dynamic `&&`\u002F`||` with interface operand** — Interface types as left operand of `&&`\u002F`||` with `dynamic` right operand now errors at compile time. Cast to concrete type or `dynamic`.\n\n6. **EF Core Cosmos sync I\u002FO removal** — `ToList()`, `SaveChanges()`, etc. on Cosmos provider always throw. Convert to async equivalents.\n\n7. **SYSLIB0063: `NamedPipeClientStream` `isConnected` parameter obsoleted** — The constructor overload taking `bool isConnected` is obsoleted. Remove the `isConnected` argument and use the new 3-parameter constructor. Projects with `TreatWarningsAsErrors` will fail to build.\n\n8. **`when` switch-expression-arm parsing** — `(X.Y) when` is now parsed as a constant pattern with a `when` clause instead of a cast expression, which can cause existing code to fail to compile or change meaning. Review switch expressions using `when` and adjust syntax as needed.\n\n9. **Microsoft.OpenApi v3 breaking changes** — `Microsoft.AspNetCore.OpenApi` now depends on `Microsoft.OpenApi` 3.x. Code using `Microsoft.OpenApi` types directly (`OpenApiDocument`, `OpenApiSchema`, etc.) will have compile errors. Follow the v3 upgrade guide.\n\n10. **EF Core Design package no longer transitive** — `Microsoft.EntityFrameworkCore.Tools` and `.Tasks` no longer depend on `.Design`. Add an explicit `PackageReference` if needed.\n\n11. **EFOptimizeContext MSBuild property removed** — Replace with `\u003CEFScaffoldModelStage>` and `\u003CEFPrecompileQueriesStage>`.\n\n### Step 4: Address behavioral changes\n\nThese changes compile successfully but alter runtime behavior. Review each one and determine impact:\n\n1. **DeflateStream\u002FGZipStream empty payload** — Now writes headers and footers even for empty payloads. If your code checks for zero-length output, update the check.\n\n2. **MemoryStream maximum capacity** — Maximum capacity updated and exception behavior changed. Review code that creates large MemoryStreams or relies on specific exception types.\n\n3. **TAR header checksum validation** — TAR-reading APIs now verify checksums. Corrupted or hand-crafted TAR files may now fail to read.\n\n4. **ZipArchive.CreateAsync eager loading** — `ZipArchive.CreateAsync` eagerly loads entries. May affect memory usage for large archives.\n\n5. **Environment.TickCount consistency** — Made consistent with Windows timeout behavior. Code relying on specific tick count behavior may need adjustment.\n\n6. **DSA removed from macOS** — DSA cryptographic operations throw on macOS. Use a different algorithm (RSA, ECDSA).\n\n7. **Japanese Calendar minimum date** — Minimum supported date corrected. Code using very early Japanese Calendar dates may be affected.\n\n8. **Minimum hardware requirements** — x86\u002Fx64 baseline moved to `x86-64-v2`; Windows Arm64 requires `LSE`. Verify deployment targets meet requirements.\n\n9. **Mono launch target for .NET Framework** — No longer set automatically. If using Mono for .NET Framework apps on Linux, specify explicitly.\n\n10. **Unhandled BackgroundService exceptions stop the host** — Exceptions from `ExecuteAsync()` now propagate and crash the host. Add try\u002Fcatch in background services that should not bring down the application.\n\n11. **ZipArchive CRC32 validation** — ZIP reads now validate CRC32 checksums. Corrupt or truncated archives that previously succeeded will now throw `InvalidDataException`.\n\n12. **TarWriter emits HardLink entries** — Hard-linked files are now written as `HardLink` entries instead of duplicated data. Consumers of .NET-produced tar archives must handle `HardLink` entries.\n\n13. **AIA certificate downloads disabled** — Server-side client-certificate validation no longer downloads intermediate CAs via AIA by default. Pre-install the full chain or have clients send intermediates.\n\n14. **Blazor Virtualize OverscanCount default changed** — Default `OverscanCount` changed from 3 to 15. Set explicitly if performance-sensitive.\n\n15. **Microsoft.Data.SqlClient 7.0 — Entra ID auth separated** — Azure\u002FEntra ID authentication dependencies removed from the core SqlClient package. Add `Microsoft.Data.SqlClient.Extensions.Azure` if using Entra ID auth.\n\n16. **SqlVector&lt;T&gt; excluded from SELECT** — Vector properties are no longer auto-loaded. Use explicit projections to include vector values.\n\n17. **SQLitePCLRaw encryption bundles removed** — `bundle_e_sqlcipher` and other encryption bundle packages removed in SQLitePCLRaw 3.0.\n\n18. **NativeAOT Unix native library `lib` prefix** — Output filenames now include `lib` prefix on Linux\u002FmacOS (e.g., `libMyLib.so`).\n\n### Step 5: Update infrastructure\n\n1. **Dockerfiles**: Update base images from 10.0 to 11.0:\n   ```dockerfile\n   # Before\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:10.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:10.0\n   # After\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:11.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:11.0\n   ```\n\n2. **CI\u002FCD pipelines**: Update SDK version references. If using `global.json`, update the `sdk.version` in your existing file while preserving other keys (such as `rollForward` and test configuration):\n   ```diff\n    {\n      \"sdk\": {\n   -    \"version\": \"10.0.100\",\n   -    \"rollForward\": \"latestFeature\"\n   +    \"version\": \"11.0.100-preview.3\",\n   +    \"rollForward\": \"latestFeature\"\n      },\n      \"otherSettings\": {\n        \"...\": \"...\"\n      }\n    }\n   ```\n\n3. **Hardware deployment targets**: Verify all deployment targets meet the updated minimum hardware requirements (x86-64-v2 for x86\u002Fx64, LSE for Windows Arm64).\n\n### Step 6: Verify\n\n1. Run a full clean build: `dotnet build --no-incremental`\n2. Run all tests: `dotnet test`\n3. If the application is containerized, build and test the container image\n4. Smoke-test the application, paying special attention to:\n   - Compression behavior with empty streams\n   - TAR file reading (checksum validation and HardLink entries)\n   - EF Core Cosmos DB operations (must be async)\n   - DSA usage on macOS\n   - Memory-intensive MemoryStream usage\n   - Span collection expression assignments\n   - BackgroundService exception handling\n   - mTLS \u002F client certificate chain validation\n   - EF Core SQL Server with Entra ID authentication\n   - NativeAOT output filenames on Unix\n5. Review the diff and ensure no unintended behavioral changes were introduced\n\n## Reference Documents\n\nThe `references\u002F` folder contains detailed breaking change information organized by technology area. Load only the references relevant to the project being migrated:\n\n| Reference file | When to load |\n|----------------|-------------|\n| `references\u002Fcsharp-compiler-dotnet10to11.md` | Always (C# 15 compiler breaking changes) |\n| `references\u002Fcore-libraries-dotnet10to11.md` | Always (applies to all .NET 11 projects) |\n| `references\u002Fsdk-msbuild-dotnet10to11.md` | Always (SDK and build tooling changes) |\n| `references\u002Faspnetcore-dotnet10to11.md` | Project uses ASP.NET Core (OpenAPI, Blazor) |\n| `references\u002Fefcore-dotnet10to11.md` | Project uses Entity Framework Core |\n| `references\u002Fcryptography-dotnet10to11.md` | Project uses cryptography APIs, mTLS, or targets macOS |\n| `references\u002Fruntime-jit-dotnet10to11.md` | Deploying to older hardware, embedded devices, or using NativeAOT |\n","# .NET 10 → .NET 11 Migration\n\nMigrate 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.\n\n> **Note:** .NET 11 is currently in preview. This skill covers breaking changes documented through Preview 3.\n\n## When to Use\n\n- Upgrading `TargetFramework` from `net10.0` to `net11.0`\n- Resolving build errors or new warnings after updating the .NET 11 SDK\n- Adapting to behavioral changes in .NET 11 runtime, ASP.NET Core 11, or EF Core 11\n- Updating CI\u002FCD pipelines, Dockerfiles, or deployment scripts for .NET 11\n- Fixing C# 15 compiler breaking changes after SDK upgrade\n\n## When Not to Use\n\n- The project already targets `net11.0` and builds cleanly — migration is done\n- Upgrading from .NET 9 or earlier — address the .NET 9→10 breaking changes first\n- Migrating from .NET Framework — that is a separate, larger effort\n- Greenfield projects that start on .NET 11 (no migration needed)\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Project or solution path | Yes | The `.csproj`, `.sln`, or `.slnx` entry point to migrate |\n| Build command | No | How to build (e.g., `dotnet build`, a repo build script). Auto-detect if not provided |\n| Test command | No | How to run tests (e.g., `dotnet test`). Auto-detect if not provided |\n| 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 |\n\n## Workflow\n\n> **Answer directly from the loaded reference documents for information about .NET 11 breaking changes.** You may inspect the local repository (project\u002Fsolution files, source code, configuration, build\u002Ftest 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.\n>\n> **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.\n\n### Step 1: Assess the project\n\n1. Identify how the project is built and tested. Look for build scripts, `.sln`\u002F`.slnx` files, or individual `.csproj` files.\n2. Run `dotnet --version` to confirm the .NET 11 SDK is installed. If it is not, stop and inform the user.\n3. Determine which technology areas the project uses by examining:\n   - **SDK attribute**: `Microsoft.NET.Sdk.Web` → ASP.NET Core; `Microsoft.NET.Sdk.WindowsDesktop` with `\u003CUseWPF>` or `\u003CUseWindowsForms>` → WPF\u002FWinForms\n   - **PackageReferences**: `Microsoft.EntityFrameworkCore.*` → EF Core; `Microsoft.EntityFrameworkCore.Cosmos` → Cosmos DB provider\n   - **Dockerfile presence** → Container changes relevant\n   - **Cryptography API usage** → DSA on macOS affected; AIA cert download changes relevant\n   - **Compression API usage** → DeflateStream\u002FGZipStream\u002FZipArchive changes relevant\n   - **TAR API usage** → Header checksum validation and HardLink entry changes relevant\n   - **`NamedPipeClientStream` usage with `SafePipeHandle`** → SYSLIB0063 constructor obsoletion relevant\n   - **`BackgroundService` usage** → Unhandled exceptions now stop the host\n   - **`Microsoft.OpenApi` direct usage** → v3 API breaking changes in ASP.NET Core OpenAPI\n   - **EF Core SQL Server with Entra ID auth** → SqlClient 7.0 auth dependency changes\n   - **NativeAOT native libraries on Unix** → Output filename prefix changed\n4. Record which reference documents are relevant (see the reference loading table in Step 3).\n5. Do a **clean build** (`dotnet build --no-incremental` or delete `bin`\u002F`obj`) on the current `net10.0` target to establish a clean baseline. Record any pre-existing warnings.\n\n### Step 2: Update the Target Framework\n\n1. In each `.csproj` (or `Directory.Build.props` if centralized), change:\n   ```xml\n   \u003CTargetFramework>net10.0\u003C\u002FTargetFramework>\n   ```\n   to:\n   ```xml\n   \u003CTargetFramework>net11.0\u003C\u002FTargetFramework>\n   ```\n   For multi-targeted projects, add `net11.0` to `\u003CTargetFrameworks>` or replace `net10.0`.\n\n2. Update all `Microsoft.Extensions.*`, `Microsoft.AspNetCore.*`, `Microsoft.EntityFrameworkCore.*`, and other Microsoft package references to their 11.0.x versions. If using Central Package Management (`Directory.Packages.props`), update versions there.\n\n3. Run `dotnet restore`. Fix any restore errors before continuing.\n\n4. Run `dotnet build`. Capture all errors and warnings — these will be addressed in Step 3.\n\n### Step 3: Fix source-breaking and compilation changes\n\nLoad reference documents based on the project's technology areas:\n\n| Reference file | When to load |\n|----------------|-------------|\n| `references\u002Fcsharp-compiler-dotnet10to11.md` | Always (C# 15 compiler breaking changes) |\n| `references\u002Fcore-libraries-dotnet10to11.md` | Always (applies to all .NET 11 projects) |\n| `references\u002Fsdk-msbuild-dotnet10to11.md` | Always (SDK and build tooling changes) |\n| `references\u002Faspnetcore-dotnet10to11.md` | Project uses ASP.NET Core (OpenAPI, Blazor) |\n| `references\u002Fefcore-dotnet10to11.md` | Project uses Entity Framework Core |\n| `references\u002Fcryptography-dotnet10to11.md` | Project uses cryptography APIs, mTLS, or targets macOS |\n| `references\u002Fruntime-jit-dotnet10to11.md` | Deploying to older hardware, embedded devices, or using NativeAOT |\n\nWork through each build error systematically. Common patterns:\n\n1. **C# 15 Span collection expression safe-context** — Collection expressions of `Span\u003CT>`\u002F`ReadOnlySpan\u003CT>` type now have `declaration-block` safe-context. Code assigning span collection expressions to variables in outer scopes will error. Use array type or move the expression to the correct scope.\n\n2. **`ref readonly` delegates\u002Flocal functions need `InAttribute`** — If synthesizing delegates from `ref readonly`-returning methods or using `ref readonly` local functions, ensure `System.Runtime.InteropServices.InAttribute` is available.\n\n3. **`nameof(this.)` in attributes** — Remove `this.` qualifier; use `nameof(P)` instead of `nameof(this.P)`.\n\n4. **`with()` in collection expressions (C# 15)** — `with(...)` is now treated as constructor arguments, not a method call. Use `@with(...)` to call a method named `with`.\n\n5. **Dynamic `&&`\u002F`||` with interface operand** — Interface types as left operand of `&&`\u002F`||` with `dynamic` right operand now errors at compile time. Cast to concrete type or `dynamic`.\n\n6. **EF Core Cosmos sync I\u002FO removal** — `ToList()`, `SaveChanges()`, etc. on Cosmos provider always throw. Convert to async equivalents.\n\n7. **SYSLIB0063: `NamedPipeClientStream` `isConnected` parameter obsoleted** — The constructor overload taking `bool isConnected` is obsoleted. Remove the `isConnected` argument and use the new 3-parameter constructor. Projects with `TreatWarningsAsErrors` will fail to build.\n\n8. **`when` switch-expression-arm parsing** — `(X.Y) when` is now parsed as a constant pattern with a `when` clause instead of a cast expression, which can cause existing code to fail to compile or change meaning. Review switch expressions using `when` and adjust syntax as needed.\n\n9. **Microsoft.OpenApi v3 breaking changes** — `Microsoft.AspNetCore.OpenApi` now depends on `Microsoft.OpenApi` 3.x. Code using `Microsoft.OpenApi` types directly (`OpenApiDocument`, `OpenApiSchema`, etc.) will have compile errors. Follow the v3 upgrade guide.\n\n10. **EF Core Design package no longer transitive** — `Microsoft.EntityFrameworkCore.Tools` and `.Tasks` no longer depend on `.Design`. Add an explicit `PackageReference` if needed.\n\n11. **EFOptimizeContext MSBuild property removed** — Replace with `\u003CEFScaffoldModelStage>` and `\u003CEFPrecompileQueriesStage>`.\n\n### Step 4: Address behavioral changes\n\nThese changes compile successfully but alter runtime behavior. Review each one and determine impact:\n\n1. **DeflateStream\u002FGZipStream empty payload** — Now writes headers and footers even for empty payloads. If your code checks for zero-length output, update the check.\n\n2. **MemoryStream maximum capacity** — Maximum capacity updated and exception behavior changed. Review code that creates large MemoryStreams or relies on specific exception types.\n\n3. **TAR header checksum validation** — TAR-reading APIs now verify checksums. Corrupted or hand-crafted TAR files may now fail to read.\n\n4. **ZipArchive.CreateAsync eager loading** — `ZipArchive.CreateAsync` eagerly loads entries. May affect memory usage for large archives.\n\n5. **Environment.TickCount consistency** — Made consistent with Windows timeout behavior. Code relying on specific tick count behavior may need adjustment.\n\n6. **DSA removed from macOS** — DSA cryptographic operations throw on macOS. Use a different algorithm (RSA, ECDSA).\n\n7. **Japanese Calendar minimum date** — Minimum supported date corrected. Code using very early Japanese Calendar dates may be affected.\n\n8. **Minimum hardware requirements** — x86\u002Fx64 baseline moved to `x86-64-v2`; Windows Arm64 requires `LSE`. Verify deployment targets meet requirements.\n\n9. **Mono launch target for .NET Framework** — No longer set automatically. If using Mono for .NET Framework apps on Linux, specify explicitly.\n\n10. **Unhandled BackgroundService exceptions stop the host** — Exceptions from `ExecuteAsync()` now propagate and crash the host. Add try\u002Fcatch in background services that should not bring down the application.\n\n11. **ZipArchive CRC32 validation** — ZIP reads now validate CRC32 checksums. Corrupt or truncated archives that previously succeeded will now throw `InvalidDataException`.\n\n12. **TarWriter emits HardLink entries** — Hard-linked files are now written as `HardLink` entries instead of duplicated data. Consumers of .NET-produced tar archives must handle `HardLink` entries.\n\n13. **AIA certificate downloads disabled** — Server-side client-certificate validation no longer downloads intermediate CAs via AIA by default. Pre-install the full chain or have clients send intermediates.\n\n14. **Blazor Virtualize OverscanCount default changed** — Default `OverscanCount` changed from 3 to 15. Set explicitly if performance-sensitive.\n\n15. **Microsoft.Data.SqlClient 7.0 — Entra ID auth separated** — Azure\u002FEntra ID authentication dependencies removed from the core SqlClient package. Add `Microsoft.Data.SqlClient.Extensions.Azure` if using Entra ID auth.\n\n16. **SqlVector&lt;T&gt; excluded from SELECT** — Vector properties are no longer auto-loaded. Use explicit projections to include vector values.\n\n17. **SQLitePCLRaw encryption bundles removed** — `bundle_e_sqlcipher` and other encryption bundle packages removed in SQLitePCLRaw 3.0.\n\n18. **NativeAOT Unix native library `lib` prefix** — Output filenames now include `lib` prefix on Linux\u002FmacOS (e.g., `libMyLib.so`).\n\n### Step 5: Update infrastructure\n\n1. **Dockerfiles**: Update base images from 10.0 to 11.0:\n   ```dockerfile\n   # Before\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:10.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:10.0\n   # After\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:11.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:11.0\n   ```\n\n2. **CI\u002FCD pipelines**: Update SDK version references. If using `global.json`, update the `sdk.version` in your existing file while preserving other keys (such as `rollForward` and test configuration):\n   ```diff\n    {\n      \"sdk\": {\n   -    \"version\": \"10.0.100\",\n   -    \"rollForward\": \"latestFeature\"\n   +    \"version\": \"11.0.100-preview.3\",\n   +    \"rollForward\": \"latestFeature\"\n      },\n      \"otherSettings\": {\n        \"...\": \"...\"\n      }\n    }\n   ```\n\n3. **Hardware deployment targets**: Verify all deployment targets meet the updated minimum hardware requirements (x86-64-v2 for x86\u002Fx64, LSE for Windows Arm64).\n\n### Step 6: Verify\n\n1. Run a full clean build: `dotnet build --no-incremental`\n2. Run all tests: `dotnet test`\n3. If the application is containerized, build and test the container image\n4. Smoke-test the application, paying special attention to:\n   - Compression behavior with empty streams\n   - TAR file reading (checksum validation and HardLink entries)\n   - EF Core Cosmos DB operations (must be async)\n   - DSA usage on macOS\n   - Memory-intensive MemoryStream usage\n   - Span collection expression assignments\n   - BackgroundService exception handling\n   - mTLS \u002F client certificate chain validation\n   - EF Core SQL Server with Entra ID authentication\n   - NativeAOT output filenames on Unix\n5. Review the diff and ensure no unintended behavioral changes were introduced\n\n## Reference Documents\n\nThe `references\u002F` folder contains detailed breaking change information organized by technology area. Load only the references relevant to the project being migrated:\n\n| Reference file | When to load |\n|----------------|-------------|\n| `references\u002Fcsharp-compiler-dotnet10to11.md` | Always (C# 15 compiler breaking changes) |\n| `references\u002Fcore-libraries-dotnet10to11.md` | Always (applies to all .NET 11 projects) |\n| `references\u002Fsdk-msbuild-dotnet10to11.md` | Always (SDK and build tooling changes) |\n| `references\u002Faspnetcore-dotnet10to11.md` | Project uses ASP.NET Core (OpenAPI, Blazor) |\n| `references\u002Fefcore-dotnet10to11.md` | Project uses Entity Framework Core |\n| `references\u002Fcryptography-dotnet10to11.md` | Project uses cryptography APIs, mTLS, or targets macOS |\n| `references\u002Fruntime-jit-dotnet10to11.md` | Deploying to older hardware, embedded devices, or using NativeAOT |\n",{"name":5,"license":14,"description":23},"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\u002FCD pipelines and Dockerfiles for .NET 11. DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 9 or earlier, greenfield .NET 11 projects, or cosmetic modernization unrelated to the upgrade. NOTE: .NET 11 is in preview. Covers breaking changes through Preview 3.\n","main","ccab8dffc0ecc173838f51e4c5f0d3b51a704f41","plugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-dotnet10-to-dotnet11","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills","https:\u002F\u002Fgithub.com\u002Fdeadmade","https:\u002F\u002Fdeadmade.github.io\u002F","Blood, an Ocean of blood","2026-11-14 02:03:31",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add deadmade\u002Fdead-agent-skills --skill migrate-dotnet10-to-dotnet11",{"tool":38,"command":39},"bunx","bunx skills add deadmade\u002Fdead-agent-skills --skill migrate-dotnet10-to-dotnet11",{"tool":41,"command":42},"pnpm","pnpm dlx skills add deadmade\u002Fdead-agent-skills --skill migrate-dotnet10-to-dotnet11","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-dotnet10-to-dotnet11\u002FSKILL.md",true,[46,52,56,60,64,68,72],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Faspnetcore-dotnet10to11.md","REFERENCE","参考文档",1588,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-dotnet10-to-dotnet11\u002Freferences\u002Faspnetcore-dotnet10to11.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcore-libraries-dotnet10to11.md",7038,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-dotnet10-to-dotnet11\u002Freferences\u002Fcore-libraries-dotnet10to11.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fcryptography-dotnet10to11.md",1826,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-dotnet10-to-dotnet11\u002Freferences\u002Fcryptography-dotnet10to11.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fcsharp-compiler-dotnet10to11.md",5431,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-dotnet10-to-dotnet11\u002Freferences\u002Fcsharp-compiler-dotnet10to11.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fefcore-dotnet10to11.md",5039,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-dotnet10-to-dotnet11\u002Freferences\u002Fefcore-dotnet10to11.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fruntime-jit-dotnet10to11.md",3371,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-dotnet10-to-dotnet11\u002Freferences\u002Fruntime-jit-dotnet10to11.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fsdk-msbuild-dotnet10to11.md",1659,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmigrate-dotnet10-to-dotnet11\u002Freferences\u002Fsdk-msbuild-dotnet10to11.md",[77,84,93,101,108,115],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7CVRBFTXSTTQ7F5P6PJEFYA","rust-best-practices","Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Frust-skills\u002Fskills\u002Frust-best-practices\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":88,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7CVR0W7B8EGTNPSPA7FPC4Z","postgres-database-migration","Use this skill for planning, testing, and safely executing PostgreSQL schema migrations — especially when working with production data or shared databases.\n\n**Trigger when user asks to:**\n- Test a schema migration before applying it to production\n- Add, remove, or rename columns safely on a live table\n- Change a column's data type without downtime\n- Add or drop indexes, constraints, or foreign keys on large tables\n- Understand which ALTER TABLE operations lock the table\n- Roll back a failed migration\n- Plan a zero-downtime migration strategy\n- Fork a database to test a migration safely\n\nCovers: lock-level reference for every common DDL operation, safe migration patterns, fork-based testing, zero-downtime column changes, index creation, constraint addition, backfill strategies, pre\u002Fpost-migration validation, and rollback planning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-database-migration\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-database-migration\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":88,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M7CVQWK20ASAZN5VETZC8J99","postgres-best-practices","Best practices and guidelines for working with Postgres. Covers schema design, indexing strategies, query optimization, migrations, and common pitfalls. Use when writing SQL, designing database schemas, optimizing queries, or setting up a Postgres database.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-best-practices\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-best-practices\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M7CVQ5CY7AQHY7A2Y99RE6A7","writing-mstest-tests","ALWAYS USE when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":18},"01M7CVPWJZ63GB0810F0SCGZ1K","winforms-expert","Create, modify, debug, or review Windows Forms applications only when the request contains a concrete Windows Forms marker. USE FOR: WinForms, Windows Forms, System.Windows.Forms, WinForms Form or UserControl designer files (*.Designer.cs or *.Designer.vb), Visual Studio WinForms Designer, TableLayoutPanel, BindingSource, DataGridView, Control.InvokeAsync, component-tray ownership, or custom control serialization. DO NOT USE FOR: WPF or WPF XAML, including Window.InputBindings, KeyBinding, commands, or DataContext; .NET MAUI; Avalonia; or any request where none of the listed Windows Forms markers is present.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fwinforms-expert\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":18},"01M7CVPR0QFZ1HMJ6GZRBQAQ7W","vectorization","Design, implement, optimize, and review SIMD code in .NET. USE FOR: vectorizing scalar loops with TensorPrimitives, Vector64\u002F128\u002F256\u002F512, or platform hardware intrinsics; reviewing existing SIMD code, including the generic Vector type, for contract equivalence, tail handling, memory safety, portability, fallbacks, and measured performance. DO NOT USE FOR: performance work unrelated to SIMD or vectorization.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fvectorization\u002FSKILL.md",[],[]]