[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D0GTP1QBA7DPQKWNS83XZS":3,"skill-same:01M7D0GTP1QBA7DPQKWNS83XZS":87},{"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":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7D0GTP1QBA7DPQKWNS83XZS","migrate-dotnet9-to-dotnet10",null,"Migrate a .NET 9 project or solution to .NET 10 and resolve all breaking changes. USE FOR: upgrading TargetFramework from net9.0 to net10.0, fixing build errors after updating the .NET 10 SDK, resolving source and behavioral changes in .NET 10 \u002F C# 14 \u002F ASP.NET Core 10 \u002F EF Core 10, updating Dockerfiles for Debian-to-Ubuntu base images, resolving obsoletion warnings (SYSLIB0058-SYSLIB0062), adapting to SDK\u002FNuGet changes (NU1510, PrunePackageReference), migrating System.Linq.Async to built-in AsyncEnumerable, fixing OpenApi v2 API changes, cryptography renames, and C# 14 compiler changes (field keyword, extension keyword, span overloads). DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 8 or earlier (use migrate-dotnet8-to-dotnet9 first), greenfield .NET 10 projects, or cosmetic modernization. LOADS REFERENCES: csharp-compiler, core-libraries, sdk-msbuild (always); aspnet-core, efcore, cryptography, extensions-hosting, serialization-networking, winforms-wpf, containers-interop (selective).","itsmejay18\u002FAI-Skills-for-My-Development-Stack","itsmejay18","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F167779943?v=4","01M7CZRFC6DDZA5V2CX8WDSZED","Jay Jemino Ababon ","01M7CZRFCVRNW1SFHSQXEJ3CQN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: migrate-dotnet9-to-dotnet10\ndescription: >\n  Migrate a .NET 9 project or solution to .NET 10 and resolve all breaking changes.\n  USE FOR: upgrading TargetFramework from net9.0 to net10.0, fixing build errors\n  after updating the .NET 10 SDK, resolving source and behavioral changes in\n  .NET 10 \u002F C# 14 \u002F ASP.NET Core 10 \u002F EF Core 10, updating Dockerfiles for\n  Debian-to-Ubuntu base images, resolving obsoletion warnings\n  (SYSLIB0058-SYSLIB0062), adapting to SDK\u002FNuGet changes (NU1510,\n  PrunePackageReference), migrating System.Linq.Async to built-in\n  AsyncEnumerable, fixing OpenApi v2 API changes, cryptography renames, and\n  C# 14 compiler changes (field keyword, extension keyword, span overloads).\n  DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 8 or earlier\n  (use migrate-dotnet8-to-dotnet9 first), greenfield .NET 10 projects, or\n  cosmetic modernization.\n  LOADS REFERENCES: csharp-compiler, core-libraries, sdk-msbuild (always);\n  aspnet-core, efcore, cryptography, extensions-hosting,\n  serialization-networking, winforms-wpf, containers-interop (selective).\nlicense: MIT\n---\n\n# .NET 9 → .NET 10 Migration\n\nMigrate a .NET 9 project or solution to .NET 10, systematically resolving all breaking changes. The outcome is a project targeting `net10.0` that builds cleanly, passes tests, and accounts for every behavioral, source-incompatible, and binary-incompatible change introduced in the .NET 10 release.\n\n## When to Use\n\n- Upgrading `TargetFramework` from `net9.0` to `net10.0`\n- Resolving build errors or new warnings after updating the .NET 10 SDK\n- Adapting to behavioral changes in .NET 10 runtime, ASP.NET Core 10, or EF Core 10\n- Updating CI\u002FCD pipelines, Dockerfiles, or deployment scripts for .NET 10\n- Migrating from the community `System.Linq.Async` package to the built-in `System.Linq.AsyncEnumerable`\n\n## When Not to Use\n\n- The project already targets `net10.0` and builds cleanly — migration is done\n- Upgrading from .NET 8 or earlier — use the `migrate-dotnet8-to-dotnet9` skill first to reach `net9.0`, then return to this skill for the `net9.0` → `net10.0` migration\n- Migrating from .NET Framework — that is a separate, larger effort\n- Greenfield projects that start on .NET 10 (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. **Exception:** If you suspect a security vulnerability (CVE) may apply to the project's dependencies, check for published security advisories — the reference documents may not cover post-publication CVEs.\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 10 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.Data.Sqlite` → Sqlite; `Microsoft.Extensions.Hosting` → Generic Host \u002F BackgroundService\n   - **Dockerfile presence** → Container changes relevant\n   - **P\u002FInvoke or native interop usage** → Interop changes relevant\n   - **`System.Linq.Async` package reference** → AsyncEnumerable migration needed\n   - **`System.Text.Json` usage with polymorphism** → Serialization 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 `net9.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>net9.0\u003C\u002FTargetFramework>\n   ```\n   to:\n   ```xml\n   \u003CTargetFramework>net10.0\u003C\u002FTargetFramework>\n   ```\n   For multi-targeted projects, add `net10.0` to `\u003CTargetFrameworks>` or replace `net9.0`.\n\n2. Update all `Microsoft.Extensions.*`, `Microsoft.AspNetCore.*`, `Microsoft.EntityFrameworkCore.*`, and other Microsoft package references to their 10.0.x versions. If using Central Package Management (`Directory.Packages.props`), update versions there.\n\n3. Run `dotnet restore`. Watch for:\n   - **NU1510**: Direct references pruned by NuGet — the package may be included in the shared framework now. Remove the explicit `\u003CPackageReference>` if so.\n   - **PackageReference without a version now raises an error** — every `\u003CPackageReference>` must have a `Version` (or use CPM).\n   - **NuGet auditing of transitive packages** (`dotnet restore` now audits transitive deps) — review any new vulnerability warnings.\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 10 project | `references\u002Fcsharp-compiler-dotnet9to10.md` |\n| Any .NET 10 project | `references\u002Fcore-libraries-dotnet9to10.md` |\n| Any .NET 10 project | `references\u002Fsdk-msbuild-dotnet9to10.md` |\n| ASP.NET Core | `references\u002Faspnet-core-dotnet9to10.md` |\n| Entity Framework Core | `references\u002Fefcore-dotnet9to10.md` |\n| Cryptography APIs | `references\u002Fcryptography-dotnet9to10.md` |\n| Microsoft.Extensions.Hosting, BackgroundService, configuration | `references\u002Fextensions-hosting-dotnet9to10.md` |\n| System.Text.Json, XmlSerializer, HttpClient, MailAddress, Uri | `references\u002Fserialization-networking-dotnet9to10.md` |\n| Windows Forms or WPF | `references\u002Fwinforms-wpf-dotnet9to10.md` |\n| Docker containers, single-file apps, native interop | `references\u002Fcontainers-interop-dotnet9to10.md` |\n\n**Common source-incompatible changes to check for:**\n\n1. **`System.Linq.Async` conflicts** — Remove the `System.Linq.Async` package reference or upgrade to v7.0.0. If consumed transitively, add `\u003CExcludeAssets>compile\u003C\u002FExcludeAssets>`. Rename `SelectAwait` calls to `Select` where needed.\n\n2. **New obsoletion warnings (SYSLIB0058–SYSLIB0062)**:\n   - `SYSLIB0058`: Replace `SslStream.KeyExchangeAlgorithm`\u002F`CipherAlgorithm`\u002F`HashAlgorithm` with `NegotiatedCipherSuite` — if the old properties were used to reject weak TLS ciphers, preserve equivalent validation logic using the new API\n   - `SYSLIB0059`: Replace `SystemEvents.EventsThreadShutdown` with `AppDomain.ProcessExit`\n   - `SYSLIB0060`: Replace `Rfc2898DeriveBytes` constructors with `Rfc2898DeriveBytes.Pbkdf2`\n   - `SYSLIB0061`: Replace `Queryable.MaxBy`\u002F`MinBy` overloads taking `IComparer\u003CTSource>` with ones taking `IComparer\u003CTKey>`\n   - `SYSLIB0062`: Replace `XsltSettings.EnableScript` usage\n\n3. **C# 14 `field` keyword in property accessors** — The identifier `field` is now a contextual keyword inside property `get`\u002F`set`\u002F`init` accessors. Local variables named `field` cause CS9272 (error). Class members named `field` referenced without `this.` cause CS9258 (warning). Fix by renaming (e.g., `fieldValue`) or escaping with `@field`. See `references\u002Fcsharp-compiler-dotnet9to10.md`.\n\n4. **C# 14 `extension` contextual keyword** — Types, aliases, or type parameters named `extension` are disallowed. Rename or escape with `@extension`.\n\n5. **C# 14 overload resolution with span parameters** — Expression trees containing `.Contains()` on arrays may now bind to `MemoryExtensions.Contains` instead of `Enumerable.Contains`. `Enumerable.Reverse` on arrays may resolve to the in-place `Span` extension. Fix by casting to `IEnumerable\u003CT>`, using `.AsEnumerable()`, or explicit static invocations. See `references\u002Fcsharp-compiler-dotnet9to10.md` for full details.\n\n6. **ASP.NET Core obsoletions** (if applicable):\n   - `WebHostBuilder`, `IWebHost`, `WebHost` are obsolete — migrate to `Host.CreateDefaultBuilder` or `WebApplication.CreateBuilder`\n   - `IActionContextAccessor` \u002F `ActionContextAccessor` obsolete\n   - `WithOpenApi` extension method deprecated\n   - `IncludeOpenAPIAnalyzers` property deprecated\n   - `IPNetwork` and `ForwardedHeadersOptions.KnownNetworks` obsolete\n   - Razor runtime compilation is obsolete\n   - `Microsoft.Extensions.ApiDescription.Client` package deprecated\n   - **`Microsoft.OpenApi` v2.x breaking changes** — `Microsoft.AspNetCore.OpenApi 10.0` pulls in `Microsoft.OpenApi` v2.x which restructures namespaces and models. `OpenApiString`\u002F`OpenApiAny` types are removed (use `JsonNode`), `OpenApiSecurityScheme.Reference` replaced by `OpenApiSecuritySchemeReference`, collections on OpenAPI model objects may be null, and `OpenApiSchema.Nullable` is removed. See `references\u002Faspnet-core-dotnet9to10.md` for migration patterns.\n\n7. **SDK changes**:\n   - `dotnet new sln` now defaults to SLNX format — use `--format sln` if the old format is needed\n   - Double quotes in file-level directives are disallowed\n   - `dnx.ps1` removed from .NET SDK\n   - `project.json` no longer supported in `dotnet restore`\n\n8. **EF Core source changes** (if applicable) — See `references\u002Fefcore-dotnet9to10.md` for:\n   - `ExecuteUpdateAsync` now accepts a regular lambda (expression tree construction code must be rewritten)\n   - `IDiscriminatorPropertySetConvention` signature changed\n   - `IRelationalCommandDiagnosticsLogger` methods add `logCommandText` parameter\n\n9. **WinForms\u002FWPF source changes** (if applicable):\n   - Applications referencing both WPF and WinForms must disambiguate `MenuItem` and `ContextMenu` types\n   - Renamed parameter in `HtmlElement.InsertAdjacentElement`\n   - Empty `ColumnDefinitions` and `RowDefinitions` are disallowed in WPF\n\n10. **Cryptography source changes** (if applicable):\n   - `MLDsa` and `SlhDsa` members renamed from `SecretKey` to `PrivateKey` (e.g., `ExportMLDsaSecretKey` → `ExportMLDsaPrivateKey`, `SecretKeySizeInBytes` → `PrivateKeySizeInBytes`)\n   - `Rfc2898DeriveBytes` constructors are obsolete (SYSLIB0060) — replace with static `Rfc2898DeriveBytes.Pbkdf2(password, salt, iterations, hashAlgorithm, outputLength)`\n   - `CoseSigner.Key` can now be null — check for null before use\n   - `X509Certificate.GetKeyAlgorithmParameters()` and `PublicKey.EncodedParameters` can return null\n   - Environment variable renamed from `CLR_OPENSSL_VERSION_OVERRIDE` to `DOTNET_OPENSSL_VERSION_OVERRIDE`\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. **SIGTERM signal handling removed** — The .NET runtime no longer registers default SIGTERM handlers. If you rely on `AppDomain.ProcessExit` or `AssemblyLoadContext.Unloading` being raised on SIGTERM:\n   - ASP.NET Core and Generic Host apps are unaffected (they register their own handlers)\n   - Console apps and containerized apps without Generic Host must register `PosixSignalRegistration.Create(PosixSignal.SIGTERM, _ => Environment.Exit(0))` explicitly\n\n2. **BackgroundService.ExecuteAsync runs entirely on a background thread** — The synchronous portion before the first `await` no longer blocks startup. If startup ordering matters, move that code to `StartAsync` or the constructor, or implement `IHostedLifecycleService`.\n\n3. **Configuration null values are now preserved** — JSON `null` values are no longer converted to empty strings. Properties initialized with non-default values will be overwritten with `null`. Review configuration binding code.\n\n4. **Microsoft.Data.Sqlite DateTimeOffset changes** (all High impact):\n   - `GetDateTimeOffset` without an offset now assumes UTC (previously assumed local)\n   - Writing `DateTimeOffset` into REAL columns now converts to UTC first\n   - `GetDateTime` with an offset now returns UTC with `DateTimeKind.Utc`\n   - Mitigation: `AppContext.SetSwitch(\"Microsoft.Data.Sqlite.Pre10TimeZoneHandling\", true)` as a temporary workaround\n\n5. **EF Core parameterized collections** — `.Contains()` on collections now uses multiple scalar parameters instead of JSON\u002FOPENJSON. May affect query performance for large collections. Mitigation: `UseParameterizedCollectionMode(ParameterTranslationMode.Parameter)` to revert.\n\n6. **EF Core JSON data type on Azure SQL** — Azure SQL and compatibility level ≥170 now use the `json` data type instead of `nvarchar(max)`. A migration will be generated to alter existing columns. Mitigation: set compatibility level to 160 or use `HasColumnType(\"nvarchar(max)\")` explicitly.\n\n7. **System.Text.Json property name conflict validation** — Polymorphic types with properties conflicting with metadata names (`$type`, `$id`, `$ref`) now throw `InvalidOperationException`. Add `[JsonIgnore]` to conflicting properties.\n\n**Other behavioral changes to review:**\n\n- `BufferedStream.WriteByte` no longer implicitly flushes — add explicit `Flush()` calls if needed\n- Default trace context propagator updated to W3C standard\n- `DriveInfo.DriveFormat` returns actual Linux filesystem type names\n- LDAP `DirectoryControl` parsing is more stringent\n- Default .NET container images switched from Debian to Ubuntu (Debian images no longer shipped)\n- Single-file apps no longer look for native libraries in executable directory by default\n- `DllImportSearchPath.AssemblyDirectory` only searches the assembly directory\n- `MailAddress` enforces validation for consecutive dots\n- Streaming HTTP responses enabled by default in browser HTTP clients\n- `Uri` length limits removed — add explicit length validation if `Uri` was used to reject oversized input from untrusted sources\n- Cookie login redirects disabled for known API endpoints (ASP.NET Core)\n- `XmlSerializer` no longer ignores `[Obsolete]` properties — audit obsolete properties for sensitive data and add `[XmlIgnore]` to prevent unintended data exposure\n- `dotnet restore` audits transitive packages\n- `dotnet watch` logs to stderr instead of stdout\n- `dotnet` CLI commands log non-command-relevant data to stderr\n- Various NuGet behavioral changes (see `references\u002Fsdk-msbuild-dotnet9to10.md`)\n- `StatusStrip` uses System RenderMode by default (WinForms)\n- `TreeView` checkbox image truncation fix (WinForms)\n- `DynamicResource` incorrect usage causes crash (WPF)\n\n### Step 5: Update infrastructure\n\n1. **Dockerfiles**: Update base images. Default tags now use Ubuntu instead of Debian. Debian images are no longer shipped for .NET 10.\n   ```dockerfile\n   # Before\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:9.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:9.0\n   # After\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:10.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:10.0\n   ```\n\n2. **CI\u002FCD pipelines**: Update SDK version references. If using `global.json`, update:\n   ```json\n   {\n     \"sdk\": {\n       \"version\": \"10.0.100\"\n     }\n   }\n   ```\n\n3. **Environment variables renamed**:\n   - `DOTNET_OPENSSL_VERSION_OVERRIDE` replaces the old name\n   - `DOTNET_ICU_VERSION_OVERRIDE` replaces the old name\n   - `NUGET_ENABLE_ENHANCED_HTTP_RETRY` has been removed\n\n4. **OpenSSL requirements**: OpenSSL 1.1.1 or later is now required on Unix. OpenSSL cryptographic primitives are no longer supported on macOS.\n\n5. **Solution file format**: If `dotnet new sln` is used in scripts, note it now generates SLNX format. Pass `--format sln` if the old format is needed.\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   - Signal handling \u002F graceful shutdown behavior\n   - Background services startup ordering\n   - Configuration binding with null values\n   - Date\u002Ftime handling with Sqlite\n   - JSON serialization with polymorphic types\n   - EF Core queries using `.Contains()` on collections\n5. **Security review** — verify that the migration has not weakened security controls:\n   - TLS cipher validation logic is preserved after `SslStream` API migration (SYSLIB0058)\n   - Obsolete properties containing sensitive data are excluded from serialization (`[XmlIgnore]`, `[JsonIgnore]`)\n   - Input validation still rejects oversized URIs if `Uri` was used as a length gate\n   - Exception handlers emit security-relevant telemetry (auth failures, access violations) before returning `true`\n   - Connection strings set an explicit `Application Name` that does not leak version info\n   - `dotnet restore` vulnerability audit findings are addressed, not suppressed\n6. 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-dotnet9to10.md` | Always (C# 14 compiler breaking changes — field keyword, extension keyword, span overloads) |\n| `references\u002Fcore-libraries-dotnet9to10.md` | Always (applies to all .NET 10 projects) |\n| `references\u002Fsdk-msbuild-dotnet9to10.md` | Always (SDK and build tooling changes) |\n| `references\u002Faspnet-core-dotnet9to10.md` | Project uses ASP.NET Core |\n| `references\u002Fefcore-dotnet9to10.md` | Project uses Entity Framework Core or Microsoft.Data.Sqlite |\n| `references\u002Fcryptography-dotnet9to10.md` | Project uses System.Security.Cryptography or X.509 certificates |\n| `references\u002Fextensions-hosting-dotnet9to10.md` | Project uses Generic Host, BackgroundService, or Microsoft.Extensions.Configuration |\n| `references\u002Fserialization-networking-dotnet9to10.md` | Project uses System.Text.Json, XmlSerializer, HttpClient, or networking APIs |\n| `references\u002Fwinforms-wpf-dotnet9to10.md` | Project uses Windows Forms or WPF |\n| `references\u002Fcontainers-interop-dotnet9to10.md` | Project uses Docker containers, single-file publishing, or native interop (P\u002FInvoke) |\n","# .NET 9 → .NET 10 Migration\n\nMigrate a .NET 9 project or solution to .NET 10, systematically resolving all breaking changes. The outcome is a project targeting `net10.0` that builds cleanly, passes tests, and accounts for every behavioral, source-incompatible, and binary-incompatible change introduced in the .NET 10 release.\n\n## When to Use\n\n- Upgrading `TargetFramework` from `net9.0` to `net10.0`\n- Resolving build errors or new warnings after updating the .NET 10 SDK\n- Adapting to behavioral changes in .NET 10 runtime, ASP.NET Core 10, or EF Core 10\n- Updating CI\u002FCD pipelines, Dockerfiles, or deployment scripts for .NET 10\n- Migrating from the community `System.Linq.Async` package to the built-in `System.Linq.AsyncEnumerable`\n\n## When Not to Use\n\n- The project already targets `net10.0` and builds cleanly — migration is done\n- Upgrading from .NET 8 or earlier — use the `migrate-dotnet8-to-dotnet9` skill first to reach `net9.0`, then return to this skill for the `net9.0` → `net10.0` migration\n- Migrating from .NET Framework — that is a separate, larger effort\n- Greenfield projects that start on .NET 10 (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. **Exception:** If you suspect a security vulnerability (CVE) may apply to the project's dependencies, check for published security advisories — the reference documents may not cover post-publication CVEs.\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 10 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.Data.Sqlite` → Sqlite; `Microsoft.Extensions.Hosting` → Generic Host \u002F BackgroundService\n   - **Dockerfile presence** → Container changes relevant\n   - **P\u002FInvoke or native interop usage** → Interop changes relevant\n   - **`System.Linq.Async` package reference** → AsyncEnumerable migration needed\n   - **`System.Text.Json` usage with polymorphism** → Serialization 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 `net9.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>net9.0\u003C\u002FTargetFramework>\n   ```\n   to:\n   ```xml\n   \u003CTargetFramework>net10.0\u003C\u002FTargetFramework>\n   ```\n   For multi-targeted projects, add `net10.0` to `\u003CTargetFrameworks>` or replace `net9.0`.\n\n2. Update all `Microsoft.Extensions.*`, `Microsoft.AspNetCore.*`, `Microsoft.EntityFrameworkCore.*`, and other Microsoft package references to their 10.0.x versions. If using Central Package Management (`Directory.Packages.props`), update versions there.\n\n3. Run `dotnet restore`. Watch for:\n   - **NU1510**: Direct references pruned by NuGet — the package may be included in the shared framework now. Remove the explicit `\u003CPackageReference>` if so.\n   - **PackageReference without a version now raises an error** — every `\u003CPackageReference>` must have a `Version` (or use CPM).\n   - **NuGet auditing of transitive packages** (`dotnet restore` now audits transitive deps) — review any new vulnerability warnings.\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 10 project | `references\u002Fcsharp-compiler-dotnet9to10.md` |\n| Any .NET 10 project | `references\u002Fcore-libraries-dotnet9to10.md` |\n| Any .NET 10 project | `references\u002Fsdk-msbuild-dotnet9to10.md` |\n| ASP.NET Core | `references\u002Faspnet-core-dotnet9to10.md` |\n| Entity Framework Core | `references\u002Fefcore-dotnet9to10.md` |\n| Cryptography APIs | `references\u002Fcryptography-dotnet9to10.md` |\n| Microsoft.Extensions.Hosting, BackgroundService, configuration | `references\u002Fextensions-hosting-dotnet9to10.md` |\n| System.Text.Json, XmlSerializer, HttpClient, MailAddress, Uri | `references\u002Fserialization-networking-dotnet9to10.md` |\n| Windows Forms or WPF | `references\u002Fwinforms-wpf-dotnet9to10.md` |\n| Docker containers, single-file apps, native interop | `references\u002Fcontainers-interop-dotnet9to10.md` |\n\n**Common source-incompatible changes to check for:**\n\n1. **`System.Linq.Async` conflicts** — Remove the `System.Linq.Async` package reference or upgrade to v7.0.0. If consumed transitively, add `\u003CExcludeAssets>compile\u003C\u002FExcludeAssets>`. Rename `SelectAwait` calls to `Select` where needed.\n\n2. **New obsoletion warnings (SYSLIB0058–SYSLIB0062)**:\n   - `SYSLIB0058`: Replace `SslStream.KeyExchangeAlgorithm`\u002F`CipherAlgorithm`\u002F`HashAlgorithm` with `NegotiatedCipherSuite` — if the old properties were used to reject weak TLS ciphers, preserve equivalent validation logic using the new API\n   - `SYSLIB0059`: Replace `SystemEvents.EventsThreadShutdown` with `AppDomain.ProcessExit`\n   - `SYSLIB0060`: Replace `Rfc2898DeriveBytes` constructors with `Rfc2898DeriveBytes.Pbkdf2`\n   - `SYSLIB0061`: Replace `Queryable.MaxBy`\u002F`MinBy` overloads taking `IComparer\u003CTSource>` with ones taking `IComparer\u003CTKey>`\n   - `SYSLIB0062`: Replace `XsltSettings.EnableScript` usage\n\n3. **C# 14 `field` keyword in property accessors** — The identifier `field` is now a contextual keyword inside property `get`\u002F`set`\u002F`init` accessors. Local variables named `field` cause CS9272 (error). Class members named `field` referenced without `this.` cause CS9258 (warning). Fix by renaming (e.g., `fieldValue`) or escaping with `@field`. See `references\u002Fcsharp-compiler-dotnet9to10.md`.\n\n4. **C# 14 `extension` contextual keyword** — Types, aliases, or type parameters named `extension` are disallowed. Rename or escape with `@extension`.\n\n5. **C# 14 overload resolution with span parameters** — Expression trees containing `.Contains()` on arrays may now bind to `MemoryExtensions.Contains` instead of `Enumerable.Contains`. `Enumerable.Reverse` on arrays may resolve to the in-place `Span` extension. Fix by casting to `IEnumerable\u003CT>`, using `.AsEnumerable()`, or explicit static invocations. See `references\u002Fcsharp-compiler-dotnet9to10.md` for full details.\n\n6. **ASP.NET Core obsoletions** (if applicable):\n   - `WebHostBuilder`, `IWebHost`, `WebHost` are obsolete — migrate to `Host.CreateDefaultBuilder` or `WebApplication.CreateBuilder`\n   - `IActionContextAccessor` \u002F `ActionContextAccessor` obsolete\n   - `WithOpenApi` extension method deprecated\n   - `IncludeOpenAPIAnalyzers` property deprecated\n   - `IPNetwork` and `ForwardedHeadersOptions.KnownNetworks` obsolete\n   - Razor runtime compilation is obsolete\n   - `Microsoft.Extensions.ApiDescription.Client` package deprecated\n   - **`Microsoft.OpenApi` v2.x breaking changes** — `Microsoft.AspNetCore.OpenApi 10.0` pulls in `Microsoft.OpenApi` v2.x which restructures namespaces and models. `OpenApiString`\u002F`OpenApiAny` types are removed (use `JsonNode`), `OpenApiSecurityScheme.Reference` replaced by `OpenApiSecuritySchemeReference`, collections on OpenAPI model objects may be null, and `OpenApiSchema.Nullable` is removed. See `references\u002Faspnet-core-dotnet9to10.md` for migration patterns.\n\n7. **SDK changes**:\n   - `dotnet new sln` now defaults to SLNX format — use `--format sln` if the old format is needed\n   - Double quotes in file-level directives are disallowed\n   - `dnx.ps1` removed from .NET SDK\n   - `project.json` no longer supported in `dotnet restore`\n\n8. **EF Core source changes** (if applicable) — See `references\u002Fefcore-dotnet9to10.md` for:\n   - `ExecuteUpdateAsync` now accepts a regular lambda (expression tree construction code must be rewritten)\n   - `IDiscriminatorPropertySetConvention` signature changed\n   - `IRelationalCommandDiagnosticsLogger` methods add `logCommandText` parameter\n\n9. **WinForms\u002FWPF source changes** (if applicable):\n   - Applications referencing both WPF and WinForms must disambiguate `MenuItem` and `ContextMenu` types\n   - Renamed parameter in `HtmlElement.InsertAdjacentElement`\n   - Empty `ColumnDefinitions` and `RowDefinitions` are disallowed in WPF\n\n10. **Cryptography source changes** (if applicable):\n   - `MLDsa` and `SlhDsa` members renamed from `SecretKey` to `PrivateKey` (e.g., `ExportMLDsaSecretKey` → `ExportMLDsaPrivateKey`, `SecretKeySizeInBytes` → `PrivateKeySizeInBytes`)\n   - `Rfc2898DeriveBytes` constructors are obsolete (SYSLIB0060) — replace with static `Rfc2898DeriveBytes.Pbkdf2(password, salt, iterations, hashAlgorithm, outputLength)`\n   - `CoseSigner.Key` can now be null — check for null before use\n   - `X509Certificate.GetKeyAlgorithmParameters()` and `PublicKey.EncodedParameters` can return null\n   - Environment variable renamed from `CLR_OPENSSL_VERSION_OVERRIDE` to `DOTNET_OPENSSL_VERSION_OVERRIDE`\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. **SIGTERM signal handling removed** — The .NET runtime no longer registers default SIGTERM handlers. If you rely on `AppDomain.ProcessExit` or `AssemblyLoadContext.Unloading` being raised on SIGTERM:\n   - ASP.NET Core and Generic Host apps are unaffected (they register their own handlers)\n   - Console apps and containerized apps without Generic Host must register `PosixSignalRegistration.Create(PosixSignal.SIGTERM, _ => Environment.Exit(0))` explicitly\n\n2. **BackgroundService.ExecuteAsync runs entirely on a background thread** — The synchronous portion before the first `await` no longer blocks startup. If startup ordering matters, move that code to `StartAsync` or the constructor, or implement `IHostedLifecycleService`.\n\n3. **Configuration null values are now preserved** — JSON `null` values are no longer converted to empty strings. Properties initialized with non-default values will be overwritten with `null`. Review configuration binding code.\n\n4. **Microsoft.Data.Sqlite DateTimeOffset changes** (all High impact):\n   - `GetDateTimeOffset` without an offset now assumes UTC (previously assumed local)\n   - Writing `DateTimeOffset` into REAL columns now converts to UTC first\n   - `GetDateTime` with an offset now returns UTC with `DateTimeKind.Utc`\n   - Mitigation: `AppContext.SetSwitch(\"Microsoft.Data.Sqlite.Pre10TimeZoneHandling\", true)` as a temporary workaround\n\n5. **EF Core parameterized collections** — `.Contains()` on collections now uses multiple scalar parameters instead of JSON\u002FOPENJSON. May affect query performance for large collections. Mitigation: `UseParameterizedCollectionMode(ParameterTranslationMode.Parameter)` to revert.\n\n6. **EF Core JSON data type on Azure SQL** — Azure SQL and compatibility level ≥170 now use the `json` data type instead of `nvarchar(max)`. A migration will be generated to alter existing columns. Mitigation: set compatibility level to 160 or use `HasColumnType(\"nvarchar(max)\")` explicitly.\n\n7. **System.Text.Json property name conflict validation** — Polymorphic types with properties conflicting with metadata names (`$type`, `$id`, `$ref`) now throw `InvalidOperationException`. Add `[JsonIgnore]` to conflicting properties.\n\n**Other behavioral changes to review:**\n\n- `BufferedStream.WriteByte` no longer implicitly flushes — add explicit `Flush()` calls if needed\n- Default trace context propagator updated to W3C standard\n- `DriveInfo.DriveFormat` returns actual Linux filesystem type names\n- LDAP `DirectoryControl` parsing is more stringent\n- Default .NET container images switched from Debian to Ubuntu (Debian images no longer shipped)\n- Single-file apps no longer look for native libraries in executable directory by default\n- `DllImportSearchPath.AssemblyDirectory` only searches the assembly directory\n- `MailAddress` enforces validation for consecutive dots\n- Streaming HTTP responses enabled by default in browser HTTP clients\n- `Uri` length limits removed — add explicit length validation if `Uri` was used to reject oversized input from untrusted sources\n- Cookie login redirects disabled for known API endpoints (ASP.NET Core)\n- `XmlSerializer` no longer ignores `[Obsolete]` properties — audit obsolete properties for sensitive data and add `[XmlIgnore]` to prevent unintended data exposure\n- `dotnet restore` audits transitive packages\n- `dotnet watch` logs to stderr instead of stdout\n- `dotnet` CLI commands log non-command-relevant data to stderr\n- Various NuGet behavioral changes (see `references\u002Fsdk-msbuild-dotnet9to10.md`)\n- `StatusStrip` uses System RenderMode by default (WinForms)\n- `TreeView` checkbox image truncation fix (WinForms)\n- `DynamicResource` incorrect usage causes crash (WPF)\n\n### Step 5: Update infrastructure\n\n1. **Dockerfiles**: Update base images. Default tags now use Ubuntu instead of Debian. Debian images are no longer shipped for .NET 10.\n   ```dockerfile\n   # Before\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:9.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:9.0\n   # After\n   FROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:10.0 AS build\n   FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:10.0\n   ```\n\n2. **CI\u002FCD pipelines**: Update SDK version references. If using `global.json`, update:\n   ```json\n   {\n     \"sdk\": {\n       \"version\": \"10.0.100\"\n     }\n   }\n   ```\n\n3. **Environment variables renamed**:\n   - `DOTNET_OPENSSL_VERSION_OVERRIDE` replaces the old name\n   - `DOTNET_ICU_VERSION_OVERRIDE` replaces the old name\n   - `NUGET_ENABLE_ENHANCED_HTTP_RETRY` has been removed\n\n4. **OpenSSL requirements**: OpenSSL 1.1.1 or later is now required on Unix. OpenSSL cryptographic primitives are no longer supported on macOS.\n\n5. **Solution file format**: If `dotnet new sln` is used in scripts, note it now generates SLNX format. Pass `--format sln` if the old format is needed.\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   - Signal handling \u002F graceful shutdown behavior\n   - Background services startup ordering\n   - Configuration binding with null values\n   - Date\u002Ftime handling with Sqlite\n   - JSON serialization with polymorphic types\n   - EF Core queries using `.Contains()` on collections\n5. **Security review** — verify that the migration has not weakened security controls:\n   - TLS cipher validation logic is preserved after `SslStream` API migration (SYSLIB0058)\n   - Obsolete properties containing sensitive data are excluded from serialization (`[XmlIgnore]`, `[JsonIgnore]`)\n   - Input validation still rejects oversized URIs if `Uri` was used as a length gate\n   - Exception handlers emit security-relevant telemetry (auth failures, access violations) before returning `true`\n   - Connection strings set an explicit `Application Name` that does not leak version info\n   - `dotnet restore` vulnerability audit findings are addressed, not suppressed\n6. 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-dotnet9to10.md` | Always (C# 14 compiler breaking changes — field keyword, extension keyword, span overloads) |\n| `references\u002Fcore-libraries-dotnet9to10.md` | Always (applies to all .NET 10 projects) |\n| `references\u002Fsdk-msbuild-dotnet9to10.md` | Always (SDK and build tooling changes) |\n| `references\u002Faspnet-core-dotnet9to10.md` | Project uses ASP.NET Core |\n| `references\u002Fefcore-dotnet9to10.md` | Project uses Entity Framework Core or Microsoft.Data.Sqlite |\n| `references\u002Fcryptography-dotnet9to10.md` | Project uses System.Security.Cryptography or X.509 certificates |\n| `references\u002Fextensions-hosting-dotnet9to10.md` | Project uses Generic Host, BackgroundService, or Microsoft.Extensions.Configuration |\n| `references\u002Fserialization-networking-dotnet9to10.md` | Project uses System.Text.Json, XmlSerializer, HttpClient, or networking APIs |\n| `references\u002Fwinforms-wpf-dotnet9to10.md` | Project uses Windows Forms or WPF |\n| `references\u002Fcontainers-interop-dotnet9to10.md` | Project uses Docker containers, single-file publishing, or native interop (P\u002FInvoke) |\n",{"name":5,"license":15,"description":24},"Migrate a .NET 9 project or solution to .NET 10 and resolve all breaking changes. USE FOR: upgrading TargetFramework from net9.0 to net10.0, fixing build errors after updating the .NET 10 SDK, resolving source and behavioral changes in .NET 10 \u002F C# 14 \u002F ASP.NET Core 10 \u002F EF Core 10, updating Dockerfiles for Debian-to-Ubuntu base images, resolving obsoletion warnings (SYSLIB0058-SYSLIB0062), adapting to SDK\u002FNuGet changes (NU1510, PrunePackageReference), migrating System.Linq.Async to built-in AsyncEnumerable, fixing OpenApi v2 API changes, cryptography renames, and C# 14 compiler changes (field keyword, extension keyword, span overloads). DO NOT USE FOR: .NET Framework migrations, upgrading from .NET 8 or earlier (use migrate-dotnet8-to-dotnet9 first), greenfield .NET 10 projects, or cosmetic modernization. LOADS REFERENCES: csharp-compiler, core-libraries, sdk-msbuild (always); aspnet-core, efcore, cryptography, extensions-hosting, serialization-networking, winforms-wpf, containers-interop (selective).\n","main","30954af1dcd1a74b63f05deb2e2c41e5ecae4a82","02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack","https:\u002F\u002Fgithub.com\u002Fitsmejay18","2026-09-18 16:06:36",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add itsmejay18\u002FAI-Skills-for-My-Development-Stack --skill migrate-dotnet9-to-dotnet10",{"tool":37,"command":38},"bunx","bunx skills add itsmejay18\u002FAI-Skills-for-My-Development-Stack --skill migrate-dotnet9-to-dotnet10",{"tool":40,"command":41},"pnpm","pnpm dlx skills add itsmejay18\u002FAI-Skills-for-My-Development-Stack --skill migrate-dotnet9-to-dotnet10","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002FSKILL.md",true,[45,51,55,59,63,67,71,75,79,83],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Faspnet-core-dotnet9to10.md","REFERENCE","参考文档",6827,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002Freferences\u002Faspnet-core-dotnet9to10.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcontainers-interop-dotnet9to10.md",3083,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002Freferences\u002Fcontainers-interop-dotnet9to10.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fcore-libraries-dotnet9to10.md",4914,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002Freferences\u002Fcore-libraries-dotnet9to10.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fcryptography-dotnet9to10.md",2849,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002Freferences\u002Fcryptography-dotnet9to10.md",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fcsharp-compiler-dotnet9to10.md",5052,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002Freferences\u002Fcsharp-compiler-dotnet9to10.md",{"path":68,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fefcore-dotnet9to10.md",6638,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002Freferences\u002Fefcore-dotnet9to10.md",{"path":72,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fextensions-hosting-dotnet9to10.md",3253,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002Freferences\u002Fextensions-hosting-dotnet9to10.md",{"path":76,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fsdk-msbuild-dotnet9to10.md",2455,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002Freferences\u002Fsdk-msbuild-dotnet9to10.md",{"path":80,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fserialization-networking-dotnet9to10.md",3020,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002Freferences\u002Fserialization-networking-dotnet9to10.md",{"path":84,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fwinforms-wpf-dotnet9to10.md",3482,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F02-CSharp-WPF-Desktop-Development\u002Fmigrate-dotnet9-to-dotnet10\u002Freferences\u002Fwinforms-wpf-dotnet9to10.md",[88,95,102,109,116,123],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7D2RKBHPZ3E1RNN5DWHT550","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 Vector\u003CT>, 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\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fvectorization\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7D2RDJ7RN3QK8GJR0QTER1D","resolve-project-references","Guide for interpreting ResolveProjectReferences time in MSBuild performance summaries. Activate when ResolveProjectReferences appears as the most expensive target and developers are trying to optimize it directly. Explains that the reported time includes wait time for dependent project builds and is misleading. Guides users to focus on task self-time instead. Do not activate for general build performance -- use build-perf-diagnostics instead.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fresolve-project-references\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7D2R1H2GTNZYHG9YRX3JDQW","optimizing-ef-core-queries","Optimize and improve the performance of slow Entity Framework Core (EF Core) queries: make them generate less SQL, make fewer database round-trips, and return results faster. Use whenever an EF Core or DbContext query or data-access path is slow or should be made faster — whether or not EF Core owns the database schema. For EF Core, not Dapper or raw ADO.NET.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Foptimizing-ef-core-queries\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7D2QREG04W1YT0NEBHEW5C9","microbenchmarking","Activate this skill when BenchmarkDotNet (BDN) is involved in the task — creating, running, configuring, or reviewing BDN benchmarks. Also activate when microbenchmarking .NET code would be useful and BenchmarkDotNet is the likely tool. Consider activating when answering a .NET performance question requires measurement and BenchmarkDotNet may be needed. Covers microbenchmark design, BDN configuration and project setup, how to run BDN microbenchmarks efficiently and effectively, and using BDN for side-by-side performance comparisons. Do NOT use for profiling\u002Ftracing .NET code (dotnet-trace, PerfView), production telemetry, or load\u002Fstress testing (Crank, k6).","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fmicrobenchmarking\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M7D2QGE175XWPZVACVH2868Z","incremental-build","Guide for optimizing MSBuild incremental builds. USE FOR: builds slower than expected on subsequent runs, 'nothing changed but it rebuilds anyway', diagnosing why targets re-execute unnecessarily, fixing broken no-op builds. Covers 8 common causes: missing Inputs\u002FOutputs on custom targets, volatile properties in output paths (timestamps\u002FGUIDs), file writes outside tracked Outputs, missing FileWrites registration, glob changes, Visual Studio Fast Up-to-Date Check (FUTDC) issues. Key diagnostic: look for 'Building target completely' vs 'Skipping target' in binlog. DO NOT USE FOR: first-time build slowness (use build-perf-baseline), parallelism issues (use build-parallelism), evaluation-phase slowness (use eval-performance), non-MSBuild build systems.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fincremental-build\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M7D2Q1DQTC6K49R73WQTTPSB","eval-performance","Guide for diagnosing and improving MSBuild project evaluation performance. USE FOR: builds slow before any compilation starts, high evaluation time in binlog analysis, expensive glob patterns walking large directories (node_modules, .git, bin\u002Fobj), deep import chains (>20 levels), preprocessed output >10K lines indicating heavy evaluation, property functions with file I\u002FO ($([System.IO.File]::ReadAllText(...))), multiple evaluations per project. Covers the 5 MSBuild evaluation phases, glob optimization via DefaultItemExcludes, import chain analysis with \u002Fpp preprocessing. DO NOT USE FOR: compilation-time slowness (use build-perf-diagnostics), incremental build issues (use incremental-build), non-MSBuild build systems.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Feval-performance\u002FSKILL.md",[],[]]