[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79XFMQM7PSAVAT0W3VDNFH9":3,"skill-same:01M79XFMQM7PSAVAT0W3VDNFH9":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M79XFMQM7PSAVAT0W3VDNFH9","deniz-dotnet-general.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: covers breaking changes documented through .NET 11 Preview 3; check the official .NET 11 breaking-changes list for later ones.","Blind-Striker\u002Fagent-skills-and-plugins","Blind-Striker","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1965259?v=4","01M79WFXTE5PH0C1VB7B54ANMN","Deniz İrgin","01M79WFXV5KZ5GST1K8G035DM5",1,"MIT","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.migrate-dotnet10-to-dotnet11\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: deniz-dotnet-general.migrate-dotnet10-to-dotnet11\ndescription: >\n  Migrate a .NET 10 project or solution to .NET 11 and resolve all breaking\n  changes. This is a MIGRATION skill — use it when upgrading from .NET 10 to\n  .NET 11, NOT for writing new programs. USE FOR: upgrading TargetFramework from\n  net10.0 to net11.0, fixing build errors after updating the .NET 11 SDK,\n  resolving source-breaking and behavioral changes in .NET 11 runtime, C# 15\n  compiler, and EF Core 11, adapting to updated minimum hardware requirements\n  (x86-64-v2, Arm64 LSE), and updating CI\u002FCD pipelines and Dockerfiles for .NET\n  11. DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 9 or\n  earlier, greenfield .NET 11 projects, or cosmetic modernization unrelated to\n  the upgrade. NOTE: covers breaking changes documented through .NET 11 Preview\n  3; check the official .NET 11 breaking-changes list for later ones.\nmetadata:\n  opencode\u002Fautoinvoke: false\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:** This skill covers breaking changes documented through .NET 11 Preview 3. .NET 11 is now generally available: check the official .NET 11 breaking-changes list on Microsoft Learn for changes after 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\",\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:** This skill covers breaking changes documented through .NET 11 Preview 3. .NET 11 is now generally available: check the official .NET 11 breaking-changes list on Microsoft Learn for changes after 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\",\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,"metadata":24,"description":25},{"opencode\u002Fautoinvoke":20},"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: covers breaking changes documented through .NET 11 Preview 3; check the official .NET 11 breaking-changes list for later ones.\n","master","b30b1c1908dbc56a8184128f18803053d762ccb5","opencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.migrate-dotnet10-to-dotnet11",0,"https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins","https:\u002F\u002Fgithub.com\u002FBlind-Striker","denizirgin.com","VP of Engineering - \r\n@armutcom @homeruntech @prontopro\r\n |  Speaker \r\n@CodeFiction\r\n, http:\u002F\u002Fcodefiction.tech | Developer, gamer, blogger, maiden iron fan","2026-11-13 00:23:18",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Blind-Striker\u002Fagent-skills-and-plugins --skill deniz-dotnet-general.migrate-dotnet10-to-dotnet11",{"tool":41,"command":42},"bunx","bunx skills add Blind-Striker\u002Fagent-skills-and-plugins --skill deniz-dotnet-general.migrate-dotnet10-to-dotnet11",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Blind-Striker\u002Fagent-skills-and-plugins --skill deniz-dotnet-general.migrate-dotnet10-to-dotnet11","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.migrate-dotnet10-to-dotnet11\u002FSKILL.md",true,[49,55,59,63,67,71,75],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Faspnetcore-dotnet10to11.md","REFERENCE","参考文档",1701,"https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.migrate-dotnet10-to-dotnet11\u002Freferences\u002Faspnetcore-dotnet10to11.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fcore-libraries-dotnet10to11.md",7151,"https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.migrate-dotnet10-to-dotnet11\u002Freferences\u002Fcore-libraries-dotnet10to11.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fcryptography-dotnet10to11.md",1939,"https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.migrate-dotnet10-to-dotnet11\u002Freferences\u002Fcryptography-dotnet10to11.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fcsharp-compiler-dotnet10to11.md",5539,"https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.migrate-dotnet10-to-dotnet11\u002Freferences\u002Fcsharp-compiler-dotnet10to11.md",{"path":68,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fefcore-dotnet10to11.md",5097,"https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.migrate-dotnet10-to-dotnet11\u002Freferences\u002Fefcore-dotnet10to11.md",{"path":72,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fruntime-jit-dotnet10to11.md",3484,"https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.migrate-dotnet10-to-dotnet11\u002Freferences\u002Fruntime-jit-dotnet10to11.md",{"path":76,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fsdk-msbuild-dotnet10to11.md",1772,"https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.migrate-dotnet10-to-dotnet11\u002Freferences\u002Fsdk-msbuild-dotnet10to11.md",[80,87,94,101,108,115],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79YGWBJ52PHMSTKJ3RJ3AWR","writing-tunit-tests","Write tests in TUnit — the attributes, the async assertion model, data-driven cases, lifecycle hooks, and the parallelism rules. USE FOR writing or fixing a test in a TUnit project, translating a test idea into TUnit syntax, or reviewing TUnit test code for API mistakes. DO NOT USE FOR deciding what to test, judging whether a test is any good, or running tests.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-dotnet-general\u002Fwriting-tunit-tests\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79YGR3Y9RCRS6TD71D0KKP8","dotnet-walls","Walls for a .NET change in a repository without its own quality gates — pinned, ephemeral analyzer, format, clone and scanner commands for the verify step, their identity ratchet, and the build traps. Use during a walls preflight, or when a worker's verify step needs .NET quality gates.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-dotnet-general\u002Fdotnet-walls\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79YGFNJBST7D803NQW3SBYM","csharp-15","Write, review and modernize C# 15 (.NET 11) code correctly. Covers every C# 15 feature - collection expression arguments (`[with(...), ...]`), union types (`union`, `[Union]`, `IUnion`, custom unions), closed class hierarchies (`closed`), extension indexers, labeled `break`\u002F`continue`, non-virtual static interface members on runtimes without default interface methods, and the preview memory-safety model (`unsafe(expr)`, `safe`, requires-unsafe members). Use when code targets net11.0 or LangVersion 15\u002Fpreview, when the user mentions any of these features, when replacing marker interfaces, OneOf-style results, `goto`\u002Fflag loop exits or capacity\u002Fcomparer boilerplate, or when the build reports CS8121, CS8509, CS8655, CS8510, CS0121\u002FCS0411 on a `with(...)` element, CS9370, CS9380 or CS9363.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-dotnet-general\u002Fcsharp-15\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M79YGAV031473HSX6FN87ENH","verified-waves","Run one task as verified multi-agent waves. Plans the fan-out, sends findings to fresh skeptics, keeps a ledger, and reports N of M done; small tasks stay solo.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-coordination\u002Fverified-waves\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M79YG6QXNND4WRPP3GATSY8J","harness","The bundled dispatch harness, which runs a task file on worker models through OpenCode or Codex, fences their writes, escalates their asks to the operator, settles each result from git and its verify commands, and records every step in a ledger. Its commands, task file, modes and write fence, configuration, runs and their recovery, ledger and exit codes.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-coordination\u002Fharness\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M79YG2P5S91SDTA5912XJ4FV","delegating-to-worker-models","Use when you hand off implementation, a plan, research a decision will rely on, or a review, and you brief the worker and check what comes back. A subagent that searches, reads in parallel, or keeps your context small is ordinary tool use. Covers what stays with you, the mechanism, assigning work by strength, the walls preflight, prompts without contradictions, the worker contract and model profiles, evidence from your own run, review, and the fix-up loop.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-coordination\u002Fdelegating-to-worker-models\u002FSKILL.md",[],[]]