[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76SFNGBBSRGD87AQ65SSY6S":3,"skill-same:01M76SFNGBBSRGD87AQ65SSY6S":88},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M76SFNGBBSRGD87AQ65SSY6S","migrate-dotnet8-to-dotnet9",null,"Migrate a .NET 8 project to .NET 9 and resolve all breaking changes. USE FOR: upgrading TargetFramework from net8.0 to net9.0, fixing build errors after updating the .NET 9 SDK, resolving behavioral changes in .NET 9 \u002F C# 13 \u002F ASP.NET Core 9 \u002F EF Core 9, replacing BinaryFormatter (now always throws), resolving SYSLIB0054-SYSLIB0057, adapting to params span overload resolution, fixing C# 13 compiler changes, updating HttpClientFactory for SocketsHttpHandler, and resolving EF Core 9 migration\u002FCosmos DB changes. DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 7 or earlier, greenfield .NET 9 projects, or cosmetic modernization unrelated to the upgrade.","weiflycc-cmd\u002Fskills","weiflycc-cmd","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F250846518?v=4","01M756C4PFGZJWKK04WFB9S5XF","威飛工作室","01M756C4QJJ66QDXN2RN6SXY87",0,"MIT","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: migrate-dotnet8-to-dotnet9\ndescription: >\n  Migrate a .NET 8 project to .NET 9 and resolve all breaking changes.\n  USE FOR: upgrading TargetFramework from net8.0 to net9.0, fixing build errors\n  after updating the .NET 9 SDK, resolving behavioral changes in .NET 9 \u002F C# 13 \u002F\n  ASP.NET Core 9 \u002F EF Core 9, replacing BinaryFormatter (now always throws),\n  resolving SYSLIB0054-SYSLIB0057, adapting to params span overload resolution,\n  fixing C# 13 compiler changes, updating HttpClientFactory for SocketsHttpHandler,\n  and resolving EF Core 9 migration\u002FCosmos DB changes.\n  DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 7 or earlier,\n  greenfield .NET 9 projects, or cosmetic modernization unrelated to the upgrade.\nlicense: MIT\n---\n\n# .NET 8 → .NET 9 Migration\n\nMigrate a .NET 8 project or solution to .NET 9, systematically resolving all breaking changes. The outcome is a project targeting `net9.0` that builds cleanly, passes tests, and accounts for every behavioral, source-incompatible, and binary-incompatible change introduced in the .NET 9 release.\n\n## When to Use\n\n- Upgrading `TargetFramework` from `net8.0` to `net9.0`\n- Resolving build errors or new warnings after updating the .NET 9 SDK\n- Adapting to behavioral changes in .NET 9 runtime, ASP.NET Core 9, or EF Core 9\n- Replacing `BinaryFormatter` usage (now always throws at runtime)\n- Updating CI\u002FCD pipelines, Dockerfiles, or deployment scripts for .NET 9\n\n## When Not to Use\n\n- The project already targets `net9.0` and builds cleanly — migration is done. If the goal is to reach `net10.0`, use the `migrate-dotnet9-to-dotnet10` skill as the next step.\n- Upgrading from .NET 7 or earlier — address the prior version breaking changes first\n- Migrating from .NET Framework — that is a separate, larger effort\n- Greenfield projects that start on .NET 9 (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, WinForms, WPF, containers, etc. Auto-detect from PackageReferences and SDK attributes if not provided |\n\n## Workflow\n\n> **Answer directly from the loaded reference documents.** Do not search the filesystem or fetch web pages for breaking change information — the references contain the authoritative details. 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 9 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.Extensions.Http` → HttpClientFactory\n   - **Dockerfile presence** → Container changes relevant\n   - **P\u002FInvoke or native interop usage** → Interop changes relevant\n   - **`BinaryFormatter` usage** → Serialization migration needed\n   - **`System.Text.Json` usage** → Serialization changes relevant\n   - **X509Certificate constructors** → Cryptography changes relevant\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 `net8.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>net8.0\u003C\u002FTargetFramework>\n   ```\n   to:\n   ```xml\n   \u003CTargetFramework>net9.0\u003C\u002FTargetFramework>\n   ```\n   For multi-targeted projects, add `net9.0` to `\u003CTargetFrameworks>` or replace `net8.0`.\n\n2. Update all `Microsoft.Extensions.*`, `Microsoft.AspNetCore.*`, `Microsoft.EntityFrameworkCore.*`, and other Microsoft package references to their 9.0.x versions. If using Central Package Management (`Directory.Packages.props`), update versions there.\n\n3. Run `dotnet restore`. Watch for:\n   - **Version requirements**: .NET 9 SDK requires Visual Studio 17.12+ to target `net9.0` (17.11 for `net8.0` and earlier).\n   - **New warnings for .NET Standard 1.x** and **.NET 7 targets** — consider updating or removing outdated target frameworks.\n\n4. Run a clean build. Collect all errors and new warnings. These will be addressed in Step 3.\n\n### Step 3: Resolve build errors and source-incompatible changes\n\nWork through compilation errors and new warnings systematically. Load the appropriate reference documents based on the project type:\n\n| If the project uses… | Load reference |\n|-----------------------|----------------|\n| Any .NET 9 project | `references\u002Fcsharp-compiler-dotnet8to9.md` |\n| Any .NET 9 project | `references\u002Fcore-libraries-dotnet8to9.md` |\n| Any .NET 9 project | `references\u002Fsdk-msbuild-dotnet8to9.md` |\n| ASP.NET Core | `references\u002Faspnet-core-dotnet8to9.md` |\n| Entity Framework Core | `references\u002Fefcore-dotnet8to9.md` |\n| Cryptography APIs | `references\u002Fcryptography-dotnet8to9.md` |\n| System.Text.Json, HttpClient, networking | `references\u002Fserialization-networking-dotnet8to9.md` |\n| Windows Forms or WPF | `references\u002Fwinforms-wpf-dotnet8to9.md` |\n| Docker containers, native interop | `references\u002Fcontainers-interop-dotnet8to9.md` |\n| Runtime configuration, deployment | `references\u002Fdeployment-runtime-dotnet8to9.md` |\n\n**Common source-incompatible changes to check for:**\n\n1. **`params` span overload resolution** — New `params ReadOnlySpan\u003CT>` overloads on `String.Join`, `String.Concat`, `Path.Combine`, `Task.WhenAll`, and many more now bind preferentially. Code calling these methods inside `Expression` lambdas will fail (CS8640\u002FCS9226). See `references\u002Fcore-libraries-dotnet8to9.md`.\n\n2. **`StringValues` ambiguous overload** — The `params Span\u003CT>` feature creates ambiguity with `StringValues` implicit operators on methods like `String.Concat`, `String.Join`, `Path.Combine`. Fix by explicitly casting arguments. See `references\u002Fcore-libraries-dotnet8to9.md`.\n\n3. **New obsoletion warnings (SYSLIB0054–SYSLIB0057)**:\n   - `SYSLIB0054`: Replace `Thread.VolatileRead`\u002F`VolatileWrite` with `Volatile.Read`\u002F`Volatile.Write`\n   - `SYSLIB0057`: Replace `X509Certificate2`\u002F`X509Certificate` binary\u002Ffile constructors with `X509CertificateLoader` methods\n   - Also `SYSLIB0055` (ARM AdvSimd signed overloads) and `SYSLIB0056` (Assembly.LoadFrom with hash algorithm) — see `references\u002Fcore-libraries-dotnet8to9.md`\n\n4. **C# 13 `InlineArray` on record structs** — `[InlineArray]` attribute on `record struct` types is now disallowed (CS9259). Change to a regular `struct`. See `references\u002Fcsharp-compiler-dotnet8to9.md`.\n\n5. **C# 13 iterator safe context** — Iterators now introduce a safe context in C# 13. Local functions inside iterators that used unsafe code inherited from an outer `unsafe` class will now error. Add `unsafe` modifier to the local function. See `references\u002Fcsharp-compiler-dotnet8to9.md`.\n\n6. **C# 13 collection expression overload resolution** — Empty collection expressions (`[]`) no longer use span vs non-span to tiebreak overloads. Exact element type is now preferred. See `references\u002Fcsharp-compiler-dotnet8to9.md`.\n\n7. **`String.Trim(params ReadOnlySpan\u003Cchar>)` removed** — Code compiled against .NET 9 previews that passes `ReadOnlySpan\u003Cchar>` to `Trim`\u002F`TrimStart`\u002F`TrimEnd` must rebuild; the overload was removed in GA. See `references\u002Fcore-libraries-dotnet8to9.md`.\n\n8. **`BinaryFormatter` always throws** — If the project uses `BinaryFormatter`, **stop and inform the user** — this is a major decision. See `references\u002Fserialization-networking-dotnet8to9.md`.\n\n9. **`HttpListenerRequest.UserAgent` is nullable** — The property is now `string?`. Add null checks. See `references\u002Fserialization-networking-dotnet8to9.md`.\n\n10. **Windows Forms nullability annotation changes** — Some WinForms API parameters changed from nullable to non-nullable. Update call sites. See `references\u002Fwinforms-wpf-dotnet8to9.md`.\n\n11. **Windows Forms security analyzers (WFO1000)** — New analyzers produce errors for properties without explicit serialization configuration. See `references\u002Fwinforms-wpf-dotnet8to9.md`.\n\nBuild again after each batch of fixes. Repeat until the build is clean.\n\n### Step 4: Address behavioral changes\n\nBehavioral changes do not cause build errors but may change runtime behavior. Review each applicable item and determine whether the previous behavior was relied upon.\n\n**High-impact behavioral changes (check first):**\n\n1. **Floating-point to integer conversions are now saturating** — Conversions from `float`\u002F`double` to integer types now saturate instead of wrapping on x86\u002Fx64. See `references\u002Fdeployment-runtime-dotnet8to9.md`.\n\n2. **EF Core: Pending model changes exception** — `Migrate()`\u002F`MigrateAsync()` now throws if the model has pending changes. **Search for `DateTime.Now`, `DateTime.UtcNow`, or `Guid.NewGuid()` in any `HasData` call — these must be replaced with fixed constants** (e.g., `new DateTime(2024, 1, 1, 0, 0, 0, DateTimeKind.Utc)`). See `references\u002Fefcore-dotnet8to9.md`.\n\n3. **EF Core: Explicit transaction exception** — `Migrate()` inside a user transaction now throws. See `references\u002Fefcore-dotnet8to9.md`.\n\n4. **HttpClientFactory uses `SocketsHttpHandler` by default** — Code that casts the primary handler to `HttpClientHandler` will get `InvalidCastException`. See `references\u002Fserialization-networking-dotnet8to9.md`.\n\n5. **HttpClientFactory header redaction by default** — All header values in `Trace`-level logs are now redacted. See `references\u002Fserialization-networking-dotnet8to9.md`.\n\n6. **Environment variables take precedence over runtimeconfig.json** — Runtime configuration settings from environment variables now override `runtimeconfig.json`. See `references\u002Fdeployment-runtime-dotnet8to9.md`.\n\n7. **ASP.NET Core `ValidateOnBuild`\u002F`ValidateScopes` in development** — `HostBuilder` now enables DI validation in development by default. See `references\u002Faspnet-core-dotnet8to9.md`.\n\n**Other behavioral changes to review (may cause runtime exceptions ⚠️ or subtle behavioral differences):**\n\n- ⚠️ `FromKeyedServicesAttribute` no longer injects non-keyed service fallback — throws `InvalidOperationException`\n- ⚠️ Container images no longer install zlib — apps depending on system zlib will fail\n- ⚠️ Intel CET is now enabled by default — non-CET-compatible native libraries may cause process termination\n- `BigInteger` now has a maximum length of `(2^31) - 1` bits\n- `JsonDocument` deserialization of JSON `null` now returns non-null `JsonDocument` with `JsonValueKind.Null` instead of C# `null`\n- `System.Text.Json` metadata reader now unescapes metadata property names\n- `ZipArchiveEntry` names\u002Fcomments now respect the UTF-8 flag\n- `IncrementingPollingCounter` initial callback is now asynchronous\n- `InMemoryDirectoryInfo` prepends rootDir to files\n- `RuntimeHelpers.GetSubArray` returns a different type\n- `PictureBox` raises `HttpRequestException` instead of `WebException`\n- `StatusStrip` uses a different default renderer\n- `IMsoComponent` support is opt-in\n- `SafeEvpPKeyHandle.DuplicateHandle` up-refs the handle\n- `HttpClient` metrics report `server.port` unconditionally\n- URI query strings redacted in HttpClient EventSource events and IHttpClientFactory logs\n- `dotnet watch` is incompatible with Hot Reload for old frameworks\n- WPF `GetXmlNamespaceMaps` returns `Hashtable` instead of `String`\n\n### Step 5: Update infrastructure\n\n1. **Dockerfiles**: Update base images. Note that .NET 9 container images no longer install zlib. If your app depends on zlib, add `RUN apt-get update && apt-get install -y zlib1g` to your Dockerfile.\n   ```dockerfile\n   # Before\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:8.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:8.0\n   # After\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:9.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:9.0\n   ```\n\n2. **CI\u002FCD pipelines**: Update SDK version references. If using `global.json`, update:\n   ```json\n   {\n     \"sdk\": {\n       \"version\": \"9.0.100\",\n       \"rollForward\": \"latestFeature\"\n     }\n   }\n   ```\n   Review the `rollForward` policy — if set to `\"disable\"` or `\"latestPatch\"`, the SDK may not resolve correctly after upgrading. `\"latestFeature\"` (recommended) allows the SDK to roll forward to the latest 9.0.x feature band.\n\n3. **Visual Studio version**: .NET 9 SDK requires VS 17.12+ to target `net9.0`. VS 17.11 can only target `net8.0` and earlier.\n\n4. **Terminal Logger**: `dotnet build` now uses Terminal Logger by default in interactive terminals. CI scripts that parse MSBuild console output may need `--tl:off` or `MSBUILDTERMINALLOGGER=off`.\n\n5. **`dotnet workload` output**: Output format has changed. Update any scripts that parse workload command output.\n\n6. **.NET Monitor images**: Tags simplified to version-only (affects container orchestration referencing specific tags).\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   - BinaryFormatter usage (will throw at runtime)\n   - Floating-point to integer conversion behavior\n   - EF Core migration application\n   - HttpClientFactory handler casting and logging\n   - DI validation in development environment\n   - Runtime configuration settings (environment variable precedence)\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-dotnet8to9.md` | Always (C# 13 compiler breaking changes — InlineArray on records, iterator safe context, collection expression overloads) |\n| `references\u002Fcore-libraries-dotnet8to9.md` | Always (applies to all .NET 9 projects) |\n| `references\u002Fsdk-msbuild-dotnet8to9.md` | Always (SDK and build tooling changes) |\n| `references\u002Faspnet-core-dotnet8to9.md` | Project uses ASP.NET Core |\n| `references\u002Fefcore-dotnet8to9.md` | Project uses Entity Framework Core |\n| `references\u002Fcryptography-dotnet8to9.md` | Project uses System.Security.Cryptography or X.509 certificates |\n| `references\u002Fserialization-networking-dotnet8to9.md` | Project uses BinaryFormatter, System.Text.Json, HttpClient, or networking APIs |\n| `references\u002Fwinforms-wpf-dotnet8to9.md` | Project uses Windows Forms or WPF |\n| `references\u002Fcontainers-interop-dotnet8to9.md` | Project uses Docker containers or native interop (P\u002FInvoke) |\n| `references\u002Fdeployment-runtime-dotnet8to9.md` | Project uses runtime configuration, deployment, or has floating-point to integer conversions |\n","# .NET 8 → .NET 9 Migration\n\nMigrate a .NET 8 project or solution to .NET 9, systematically resolving all breaking changes. The outcome is a project targeting `net9.0` that builds cleanly, passes tests, and accounts for every behavioral, source-incompatible, and binary-incompatible change introduced in the .NET 9 release.\n\n## When to Use\n\n- Upgrading `TargetFramework` from `net8.0` to `net9.0`\n- Resolving build errors or new warnings after updating the .NET 9 SDK\n- Adapting to behavioral changes in .NET 9 runtime, ASP.NET Core 9, or EF Core 9\n- Replacing `BinaryFormatter` usage (now always throws at runtime)\n- Updating CI\u002FCD pipelines, Dockerfiles, or deployment scripts for .NET 9\n\n## When Not to Use\n\n- The project already targets `net9.0` and builds cleanly — migration is done. If the goal is to reach `net10.0`, use the `migrate-dotnet9-to-dotnet10` skill as the next step.\n- Upgrading from .NET 7 or earlier — address the prior version breaking changes first\n- Migrating from .NET Framework — that is a separate, larger effort\n- Greenfield projects that start on .NET 9 (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, WinForms, WPF, containers, etc. Auto-detect from PackageReferences and SDK attributes if not provided |\n\n## Workflow\n\n> **Answer directly from the loaded reference documents.** Do not search the filesystem or fetch web pages for breaking change information — the references contain the authoritative details. 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 9 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.Extensions.Http` → HttpClientFactory\n   - **Dockerfile presence** → Container changes relevant\n   - **P\u002FInvoke or native interop usage** → Interop changes relevant\n   - **`BinaryFormatter` usage** → Serialization migration needed\n   - **`System.Text.Json` usage** → Serialization changes relevant\n   - **X509Certificate constructors** → Cryptography changes relevant\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 `net8.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>net8.0\u003C\u002FTargetFramework>\n   ```\n   to:\n   ```xml\n   \u003CTargetFramework>net9.0\u003C\u002FTargetFramework>\n   ```\n   For multi-targeted projects, add `net9.0` to `\u003CTargetFrameworks>` or replace `net8.0`.\n\n2. Update all `Microsoft.Extensions.*`, `Microsoft.AspNetCore.*`, `Microsoft.EntityFrameworkCore.*`, and other Microsoft package references to their 9.0.x versions. If using Central Package Management (`Directory.Packages.props`), update versions there.\n\n3. Run `dotnet restore`. Watch for:\n   - **Version requirements**: .NET 9 SDK requires Visual Studio 17.12+ to target `net9.0` (17.11 for `net8.0` and earlier).\n   - **New warnings for .NET Standard 1.x** and **.NET 7 targets** — consider updating or removing outdated target frameworks.\n\n4. Run a clean build. Collect all errors and new warnings. These will be addressed in Step 3.\n\n### Step 3: Resolve build errors and source-incompatible changes\n\nWork through compilation errors and new warnings systematically. Load the appropriate reference documents based on the project type:\n\n| If the project uses… | Load reference |\n|-----------------------|----------------|\n| Any .NET 9 project | `references\u002Fcsharp-compiler-dotnet8to9.md` |\n| Any .NET 9 project | `references\u002Fcore-libraries-dotnet8to9.md` |\n| Any .NET 9 project | `references\u002Fsdk-msbuild-dotnet8to9.md` |\n| ASP.NET Core | `references\u002Faspnet-core-dotnet8to9.md` |\n| Entity Framework Core | `references\u002Fefcore-dotnet8to9.md` |\n| Cryptography APIs | `references\u002Fcryptography-dotnet8to9.md` |\n| System.Text.Json, HttpClient, networking | `references\u002Fserialization-networking-dotnet8to9.md` |\n| Windows Forms or WPF | `references\u002Fwinforms-wpf-dotnet8to9.md` |\n| Docker containers, native interop | `references\u002Fcontainers-interop-dotnet8to9.md` |\n| Runtime configuration, deployment | `references\u002Fdeployment-runtime-dotnet8to9.md` |\n\n**Common source-incompatible changes to check for:**\n\n1. **`params` span overload resolution** — New `params ReadOnlySpan\u003CT>` overloads on `String.Join`, `String.Concat`, `Path.Combine`, `Task.WhenAll`, and many more now bind preferentially. Code calling these methods inside `Expression` lambdas will fail (CS8640\u002FCS9226). See `references\u002Fcore-libraries-dotnet8to9.md`.\n\n2. **`StringValues` ambiguous overload** — The `params Span\u003CT>` feature creates ambiguity with `StringValues` implicit operators on methods like `String.Concat`, `String.Join`, `Path.Combine`. Fix by explicitly casting arguments. See `references\u002Fcore-libraries-dotnet8to9.md`.\n\n3. **New obsoletion warnings (SYSLIB0054–SYSLIB0057)**:\n   - `SYSLIB0054`: Replace `Thread.VolatileRead`\u002F`VolatileWrite` with `Volatile.Read`\u002F`Volatile.Write`\n   - `SYSLIB0057`: Replace `X509Certificate2`\u002F`X509Certificate` binary\u002Ffile constructors with `X509CertificateLoader` methods\n   - Also `SYSLIB0055` (ARM AdvSimd signed overloads) and `SYSLIB0056` (Assembly.LoadFrom with hash algorithm) — see `references\u002Fcore-libraries-dotnet8to9.md`\n\n4. **C# 13 `InlineArray` on record structs** — `[InlineArray]` attribute on `record struct` types is now disallowed (CS9259). Change to a regular `struct`. See `references\u002Fcsharp-compiler-dotnet8to9.md`.\n\n5. **C# 13 iterator safe context** — Iterators now introduce a safe context in C# 13. Local functions inside iterators that used unsafe code inherited from an outer `unsafe` class will now error. Add `unsafe` modifier to the local function. See `references\u002Fcsharp-compiler-dotnet8to9.md`.\n\n6. **C# 13 collection expression overload resolution** — Empty collection expressions (`[]`) no longer use span vs non-span to tiebreak overloads. Exact element type is now preferred. See `references\u002Fcsharp-compiler-dotnet8to9.md`.\n\n7. **`String.Trim(params ReadOnlySpan\u003Cchar>)` removed** — Code compiled against .NET 9 previews that passes `ReadOnlySpan\u003Cchar>` to `Trim`\u002F`TrimStart`\u002F`TrimEnd` must rebuild; the overload was removed in GA. See `references\u002Fcore-libraries-dotnet8to9.md`.\n\n8. **`BinaryFormatter` always throws** — If the project uses `BinaryFormatter`, **stop and inform the user** — this is a major decision. See `references\u002Fserialization-networking-dotnet8to9.md`.\n\n9. **`HttpListenerRequest.UserAgent` is nullable** — The property is now `string?`. Add null checks. See `references\u002Fserialization-networking-dotnet8to9.md`.\n\n10. **Windows Forms nullability annotation changes** — Some WinForms API parameters changed from nullable to non-nullable. Update call sites. See `references\u002Fwinforms-wpf-dotnet8to9.md`.\n\n11. **Windows Forms security analyzers (WFO1000)** — New analyzers produce errors for properties without explicit serialization configuration. See `references\u002Fwinforms-wpf-dotnet8to9.md`.\n\nBuild again after each batch of fixes. Repeat until the build is clean.\n\n### Step 4: Address behavioral changes\n\nBehavioral changes do not cause build errors but may change runtime behavior. Review each applicable item and determine whether the previous behavior was relied upon.\n\n**High-impact behavioral changes (check first):**\n\n1. **Floating-point to integer conversions are now saturating** — Conversions from `float`\u002F`double` to integer types now saturate instead of wrapping on x86\u002Fx64. See `references\u002Fdeployment-runtime-dotnet8to9.md`.\n\n2. **EF Core: Pending model changes exception** — `Migrate()`\u002F`MigrateAsync()` now throws if the model has pending changes. **Search for `DateTime.Now`, `DateTime.UtcNow`, or `Guid.NewGuid()` in any `HasData` call — these must be replaced with fixed constants** (e.g., `new DateTime(2024, 1, 1, 0, 0, 0, DateTimeKind.Utc)`). See `references\u002Fefcore-dotnet8to9.md`.\n\n3. **EF Core: Explicit transaction exception** — `Migrate()` inside a user transaction now throws. See `references\u002Fefcore-dotnet8to9.md`.\n\n4. **HttpClientFactory uses `SocketsHttpHandler` by default** — Code that casts the primary handler to `HttpClientHandler` will get `InvalidCastException`. See `references\u002Fserialization-networking-dotnet8to9.md`.\n\n5. **HttpClientFactory header redaction by default** — All header values in `Trace`-level logs are now redacted. See `references\u002Fserialization-networking-dotnet8to9.md`.\n\n6. **Environment variables take precedence over runtimeconfig.json** — Runtime configuration settings from environment variables now override `runtimeconfig.json`. See `references\u002Fdeployment-runtime-dotnet8to9.md`.\n\n7. **ASP.NET Core `ValidateOnBuild`\u002F`ValidateScopes` in development** — `HostBuilder` now enables DI validation in development by default. See `references\u002Faspnet-core-dotnet8to9.md`.\n\n**Other behavioral changes to review (may cause runtime exceptions ⚠️ or subtle behavioral differences):**\n\n- ⚠️ `FromKeyedServicesAttribute` no longer injects non-keyed service fallback — throws `InvalidOperationException`\n- ⚠️ Container images no longer install zlib — apps depending on system zlib will fail\n- ⚠️ Intel CET is now enabled by default — non-CET-compatible native libraries may cause process termination\n- `BigInteger` now has a maximum length of `(2^31) - 1` bits\n- `JsonDocument` deserialization of JSON `null` now returns non-null `JsonDocument` with `JsonValueKind.Null` instead of C# `null`\n- `System.Text.Json` metadata reader now unescapes metadata property names\n- `ZipArchiveEntry` names\u002Fcomments now respect the UTF-8 flag\n- `IncrementingPollingCounter` initial callback is now asynchronous\n- `InMemoryDirectoryInfo` prepends rootDir to files\n- `RuntimeHelpers.GetSubArray` returns a different type\n- `PictureBox` raises `HttpRequestException` instead of `WebException`\n- `StatusStrip` uses a different default renderer\n- `IMsoComponent` support is opt-in\n- `SafeEvpPKeyHandle.DuplicateHandle` up-refs the handle\n- `HttpClient` metrics report `server.port` unconditionally\n- URI query strings redacted in HttpClient EventSource events and IHttpClientFactory logs\n- `dotnet watch` is incompatible with Hot Reload for old frameworks\n- WPF `GetXmlNamespaceMaps` returns `Hashtable` instead of `String`\n\n### Step 5: Update infrastructure\n\n1. **Dockerfiles**: Update base images. Note that .NET 9 container images no longer install zlib. If your app depends on zlib, add `RUN apt-get update && apt-get install -y zlib1g` to your Dockerfile.\n   ```dockerfile\n   # Before\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:8.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:8.0\n   # After\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:9.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:9.0\n   ```\n\n2. **CI\u002FCD pipelines**: Update SDK version references. If using `global.json`, update:\n   ```json\n   {\n     \"sdk\": {\n       \"version\": \"9.0.100\",\n       \"rollForward\": \"latestFeature\"\n     }\n   }\n   ```\n   Review the `rollForward` policy — if set to `\"disable\"` or `\"latestPatch\"`, the SDK may not resolve correctly after upgrading. `\"latestFeature\"` (recommended) allows the SDK to roll forward to the latest 9.0.x feature band.\n\n3. **Visual Studio version**: .NET 9 SDK requires VS 17.12+ to target `net9.0`. VS 17.11 can only target `net8.0` and earlier.\n\n4. **Terminal Logger**: `dotnet build` now uses Terminal Logger by default in interactive terminals. CI scripts that parse MSBuild console output may need `--tl:off` or `MSBUILDTERMINALLOGGER=off`.\n\n5. **`dotnet workload` output**: Output format has changed. Update any scripts that parse workload command output.\n\n6. **.NET Monitor images**: Tags simplified to version-only (affects container orchestration referencing specific tags).\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   - BinaryFormatter usage (will throw at runtime)\n   - Floating-point to integer conversion behavior\n   - EF Core migration application\n   - HttpClientFactory handler casting and logging\n   - DI validation in development environment\n   - Runtime configuration settings (environment variable precedence)\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-dotnet8to9.md` | Always (C# 13 compiler breaking changes — InlineArray on records, iterator safe context, collection expression overloads) |\n| `references\u002Fcore-libraries-dotnet8to9.md` | Always (applies to all .NET 9 projects) |\n| `references\u002Fsdk-msbuild-dotnet8to9.md` | Always (SDK and build tooling changes) |\n| `references\u002Faspnet-core-dotnet8to9.md` | Project uses ASP.NET Core |\n| `references\u002Fefcore-dotnet8to9.md` | Project uses Entity Framework Core |\n| `references\u002Fcryptography-dotnet8to9.md` | Project uses System.Security.Cryptography or X.509 certificates |\n| `references\u002Fserialization-networking-dotnet8to9.md` | Project uses BinaryFormatter, System.Text.Json, HttpClient, or networking APIs |\n| `references\u002Fwinforms-wpf-dotnet8to9.md` | Project uses Windows Forms or WPF |\n| `references\u002Fcontainers-interop-dotnet8to9.md` | Project uses Docker containers or native interop (P\u002FInvoke) |\n| `references\u002Fdeployment-runtime-dotnet8to9.md` | Project uses runtime configuration, deployment, or has floating-point to integer conversions |\n",{"name":5,"license":15,"description":24},"Migrate a .NET 8 project to .NET 9 and resolve all breaking changes. USE FOR: upgrading TargetFramework from net8.0 to net9.0, fixing build errors after updating the .NET 9 SDK, resolving behavioral changes in .NET 9 \u002F C# 13 \u002F ASP.NET Core 9 \u002F EF Core 9, replacing BinaryFormatter (now always throws), resolving SYSLIB0054-SYSLIB0057, adapting to params span overload resolution, fixing C# 13 compiler changes, updating HttpClientFactory for SocketsHttpHandler, and resolving EF Core 9 migration\u002FCosmos DB changes. DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 7 or earlier, greenfield .NET 9 projects, or cosmetic modernization unrelated to the upgrade.\n","main","5810d492c9b301d8227f932bf87b5c954c4fa4d6","plugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd","weiflycc.com","2026-11-10 03:26:55",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add weiflycc-cmd\u002Fskills --skill migrate-dotnet8-to-dotnet9",{"tool":38,"command":39},"bunx","bunx skills add weiflycc-cmd\u002Fskills --skill migrate-dotnet8-to-dotnet9",{"tool":41,"command":42},"pnpm","pnpm dlx skills add weiflycc-cmd\u002Fskills --skill migrate-dotnet8-to-dotnet9","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002FSKILL.md",true,[46,52,56,60,64,68,72,76,80,84],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Faspnet-core-dotnet8to9.md","REFERENCE","参考文档",2357,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002Freferences\u002Faspnet-core-dotnet8to9.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcontainers-interop-dotnet8to9.md",1977,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002Freferences\u002Fcontainers-interop-dotnet8to9.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fcore-libraries-dotnet8to9.md",7148,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002Freferences\u002Fcore-libraries-dotnet8to9.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fcryptography-dotnet8to9.md",2146,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002Freferences\u002Fcryptography-dotnet8to9.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fcsharp-compiler-dotnet8to9.md",3399,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002Freferences\u002Fcsharp-compiler-dotnet8to9.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fdeployment-runtime-dotnet8to9.md",2498,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002Freferences\u002Fdeployment-runtime-dotnet8to9.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fefcore-dotnet8to9.md",7060,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002Freferences\u002Fefcore-dotnet8to9.md",{"path":77,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fsdk-msbuild-dotnet8to9.md",2393,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002Freferences\u002Fsdk-msbuild-dotnet8to9.md",{"path":81,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fserialization-networking-dotnet8to9.md",5565,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002Freferences\u002Fserialization-networking-dotnet8to9.md",{"path":85,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fwinforms-wpf-dotnet8to9.md",3838,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-dotnet8-to-dotnet9\u002Freferences\u002Fwinforms-wpf-dotnet8to9.md",[89,96,103,110,117,124],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M76SGT4WG5682JQJ0V3NSK6X","system-text-json-net11","Provides guidance on new System.Text.Json APIs introduced in .NET 11. It covers typed JsonTypeInfo access via GetTypeInfo\u003CT> and TryGetTypeInfo\u003CT> on JsonSerializerOptions, and the new JsonNamingPolicy.PascalCase static property. Use when serializing or deserializing JSON in .NET 11 applications and needing typed metadata access or PascalCase property naming.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fsystem-text-json-net11\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M76SGPNZYYV9BCZJW7BF7J8A","nuget-trusted-publishing","Set up NuGet trusted publishing (OIDC) on a GitHub Actions repo — replaces long-lived API keys with short-lived tokens. USE FOR: trusted publishing, NuGet OIDC, keyless NuGet publish, migrate from NuGet API key, NuGet\u002Flogin, secure NuGet publishing. DO NOT USE FOR: publishing to private feeds or Azure Artifacts (OIDC is nuget.org only). INVOKES: shell (powershell or bash), edit, create, ask_user for guided repo setup.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fnuget-trusted-publishing\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M76SGHVNBNVM1DMVDYTMAE5G","dotnet-pinvoke","Correctly call native (C\u002FC++) libraries from .NET using P\u002FInvoke and LibraryImport. Covers function signatures, string marshalling, memory lifetime, SafeHandle, and cross-platform patterns. USE FOR: writing new P\u002FInvoke or LibraryImport declarations, reviewing or debugging existing native interop code, wrapping a C or C++ library for use in .NET, diagnosing crashes, memory leaks, or corruption at the managed\u002Fnative boundary. DO NOT USE FOR: COM interop, C++\u002FCLI mixed-mode assemblies, or pure managed code with no native dependencies.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fdotnet-pinvoke\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M76SGDB9Z3GSB1CFW314NC84","csharp-scripts","Run file-based C# apps with the .NET CLI when the user explicitly wants C#\u002F.NET code without creating a project. Use for C# language\u002FAPI experiments, one-file C# apps, small multi-file C# apps composed with `#:include`\u002F`#:exclude`, or C# file-based apps linked with `#:ref`. Do not use for language-agnostic throwaway scripts, generic computations, Python\u002FPowerShell-style automation, full projects, or existing app integration.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fcsharp-scripts\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M76SG805T8W764WAKB1NP3CJ","thread-abort-migration","Guides migration of .NET Framework Thread.Abort usage to cooperative cancellation in modern .NET. USE FOR: modernizing code that calls Thread.Abort, catching ThreadAbortException, replacing Thread.ResetAbort, replacing Thread.Interrupt for thread termination, resolving PlatformNotSupportedException or SYSLIB0006 after retargeting to .NET 6+, migrating ASP.NET Response.End or Response.Redirect(url, true) which internally call Thread.Abort. DO NOT USE FOR: code that only uses Thread.Join, Thread.Sleep, or Thread.Start without any abort, interrupt, or ThreadAbortException usage — these APIs work identically in modern .NET and need no migration. Also not for projects staying on .NET Framework, or Thread.Abort usage inside third-party libraries you do not control.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fthread-abort-migration\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M76SG2588ZJBE5C51HYJJSKV","migrate-nullable-references","Enable nullable reference types in a C# project and systematically resolve all warnings. USE FOR: adopting NRTs in existing codebases, file-by-file or project-wide migration, fixing CS8602\u002FCS8618\u002FCS86xx warnings, annotating APIs for nullability, cleaning up null-forgiving operators, upgrading dependencies with new nullable annotations. DO NOT USE FOR: projects already fully migrated with zero warnings (unless auditing suppressions), fixing a handful of nullable warnings in code that already has NRTs enabled, suppressing warnings without fixing them, C# 7.3 or earlier projects. INVOKES: Get-NullableReadiness.ps1 scanner script.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-nullable-references\u002FSKILL.md",[],[]]