/net10-core:net10-guardrailsfrom net10-core
Use when doing any C#/.NET work in a repository that targets net10.0 (.NET 10 LTS) and you must decide whether an API, language feature, SDK command or package version is available on .NET 10, or when a build behaves differently on another machine. Covers: "does X exist in .NET 10", .NET 11 / C# 15 APIs leaking into a .NET 10 project, LangVersion, global.json SDK pinning, NuGet pruning (NU1510), NuGetAudit, .slnx, Microsoft.Testing.Platform in dotnet test, dnx, System.Linq.Async conflicts, and which skill in the net10 tree to use next. DO NOT USE FOR: projects that already target net11.0 or later, or .NET Framework projects.
Ships in net10-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The team stays on .NET 10 LTS (net10.0, C# 14, SDK 10.0.1xx). Coding agents now know .NET 11 and
C# 15 from previews and the November 2026 release, and also carry plenty of .NET 6-9 habits. This skill
keeps code inside the .NET 10 fence and points to the right specialist skill.
<TargetFramework>net10.0</TargetFramework> (or a net10.0 entry in
TargetFrameworks). Never change it to make something compile.Microsoft.AspNetCore.*, Microsoft.EntityFrameworkCore.*
and the Microsoft.Extensions.* packages that ship with them. Other packages may pull out-of-band BCL
packages at 11.x transitively (OpenTelemetry 1.21 → System.Diagnostics.DiagnosticSource 11.0.0): that is
supported when the package has a lib/net10.0 folder. Do not downgrade the library because of it.14.0. latest/default/latestMajor/preview follow the installed SDK, so
a machine with the .NET 11 SDK compiles the same project as C# 15. Flag it; don't silently keep it.global.json keeps every machine on the 10.0 band:
{ "sdk": { "version": "10.0.100", "rollForward": "latestFeature" } }
Without it, a machine that has the .NET 11 SDK builds with SDK 11 (different analyzers, NuGet and CLI behavior).dotnet --version in the repository: it must print 10.0.x.dotnet run <this-skill>/scripts/api-exists.cs -- Queryable.FullJoin --project src/Api/Api.csproj
# NOT FOUND for net10.0: Queryable.FullJoin (exit 1)
dotnet run <this-skill>/scripts/api-exists.cs -- IEndpointConventionBuilder.DisableValidation --project src/Api/Api.csproj
# FOUND extension method ...ValidationEndpointConventionBuilderExtensions.DisableValidation<T>(this T ...) (exit 0)
dotnet restore first).
Takes about 2 seconds; much faster than grepping XML docs or decompiling the SDK.Type, Type.Member, Namespace.Type.Member. Extension methods match on their declared
receiver; for builders query the interface (IEndpointConventionBuilder.X, IServiceCollection.X).dotnet build.| Task | Skill |
|---|---|
| C# features, closed sets of cases, LangVersion | csharp-14 |
| Minimal APIs, validation, OpenAPI, SSE, auth | aspnetcore-10, then dotnet-webapi |
| EF Core queries, bulk updates, filters, JSON columns | efcore-10, then optimizing-ef-core-queries |
One-file C# apps (dotnet run app.cs) | csharp-scripts |
| Run / filter tests, VSTest vs MTP | run-tests, platform-detection, filter-syntax |
| Write or improve tests | code-testing, writing-mstest-tests, test-anti-patterns, testcontainers-integration-tests |
| Build failures, MSBuild, Directory.Build.props, CPM | msbuild, directory-build-organization, convert-to-cpm |
| Performance, traces, dumps, benchmarks | analyzing-dotnet-performance, dotnet-trace-collect, dump-collect, microbenchmarking |
| Upgrading to .NET 10 | migrate-dotnet9-to-dotnet10 (from 8: migrate-dotnet8-to-dotnet9 first) |
| Breaking-change lookup for any version | dotnet-breaking-changes |
| Official docs lookup (Microsoft Learn MCP) | microsoft-docs, microsoft-code-reference |
dotnet new sln creates .slnx; use --format sln only if a tool needs the old format.System.Text.Json) gives NU1510. Remove the reference; don't suppress the warning.NuGetAuditMode=all); with TreatWarningsAsErrors
a vulnerable transitive package fails restore. Fix the package, or <WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>.PackageReference outside Central Package Management is error NU1015.System.Linq.AsyncEnumerable is in the BCL: the System.Linq.Async package now causes ambiguous calls. Remove it.dotnet test on Microsoft.Testing.Platform is opt-in via global.json { "test": { "runner": "Microsoft.Testing.Platform" } }
(MTP 1.7+); then use dotnet test --project X.csproj / --solution X.slnx. Migration: migrate-vstest-to-mtp.dnx <package> (= dotnet tool exec) runs a tool without installing it; in CI prefer a local tool manifest + dotnet tool restore.#:package, #:project, #:property, #:sdk only. #:include/#:exclude
need SDK 10.0.300+, #:ref needs .NET 11, and a double quote in a directive is a build error.--cli-schema on any dotnet command prints its options as JSON: use it instead of guessing flags.| .NET 11 | .NET 10 instead |
|---|---|
Process.RunAndCaptureTextAsync, Process.RunAsync, process.ReadAllTextAsync | RedirectStandardOutput/Error + ReadToEndAsync (both streams concurrently) + WaitForExitAsync |
JsonNamingPolicy.PascalCase, [JsonNamingPolicy] on a type | PropertyNamingPolicy = null (C# names as-is) |
options.GetTypeInfo<T>() | (JsonTypeInfo<T>)options.GetTypeInfo(typeof(T)) |
JsonSerializer.SerializeAsyncEnumerable(..., topLevelValues: true) (JSON Lines) | loop SerializeAsync(item) + write '\n' |
FullJoin, selector-less Join/LeftJoin/RightJoin | LeftJoin(..., (o, i) => ...) + Concat of unmatched rows (see efcore-10) |
ZstandardStream, ZstandardEncoder | BrotliStream / GZipStream |
GZipEncoder/DeflateEncoder, ReadOnlyMemoryStream, StringStream | the *Stream classes over a MemoryStream |
X25519DiffieHellman, HPKE, CompositeMLKem, unpadded Aes.EncryptKeyWrap | ECDiffieHellman, MLKem / MLDsa (check IsSupported), Aes.EncryptKeyWrapPadded |
Dns.ResolveSrv/ResolveMx/ResolveTxt | Dns.GetHostAddressesAsync (A/AAAA) or a DNS client package |
Decimal32/64/128, Random.NextInteger<T>() | decimal, Random.Shared.Next(...) |
AsyncValidationAttribute, Validator.ValidateObjectAsync | sync validation + explicit async checks (see aspnetcore-10) |
OptionsBuilder<T>.Validate<TValidator>(), IAsyncValidateOptions<T> | services.AddSingleton<IValidateOptions<T>, V>() + .ValidateOnStart() |
C# 15 unions/closed/with(...)/labeled break | see csharp-14 |
Each guard in this tree is a compile test: tests/guards/*.cs must fail on net10.0 with the stated error.
Full lists (SDK, NuGet, runtime breaking changes with fixes, ~60 .NET 11-only APIs):
references/dotnet-10-sdk-and-libraries.md.
TargetFramework, LangVersion or global.json to make code compile.Microsoft.AspNetCore.* / Microsoft.EntityFrameworkCore.* at 11.x, or any preview package.UnionAttribute, FullJoin, a YAML endpoint):
check api-exists.cs and the area skill first; .NET 10 often has its own way.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub codehepta/net10-skills --plugin net10-core11 skills in this plugin
/csharp-14Use when writing or reviewing C# in a project that targets net10.0 (C# 14 by default), or when choosing LangVersion: extension members/extension blocks, extension properties, the `field` keyword, null-conditional assignment, partial constructors/events, user-defined compound assignment operators, first-class span conversions, and modeling a closed set of cases ("discriminated union", "one of several types", exhaustive switch) without C# 15 unions. USE FOR: "extension property", "extension block", "static extension", "field keyword", "backing field", "?.= assignment", "union type", "closed hierarchy", "OneOf", "exhaustive switch", "CS8509", "CS9258", "LangVersion latest", "LangVersion preview", "C# 15". DO NOT USE FOR: projects targeting net11.0 or later (C# 15 unions and closed classes are real there), F# discriminated unions, or behavior-preserving refactors (use csharp-refactoring).
/csharp-concurrency-patternsChoosing the right concurrency abstraction in .NET - from async/await for I/O to Channels for producer/consumer to Akka.NET for stateful entity management. Avoid locks and manual synchronization unless absolutely necessary./csharp-refactoringSafely refactors C#/.NET code without changing behavior. USE FOR any request to refactor, rename, move, extract, inline, merge, consolidate, deduplicate, split, or modernize C# code, even a small extract, inline, or rename, or merging near-identical types; green builds miss drift in #if branches, generated partials, and reflection/config names. When a changed member is visible outside the assembly (PublicAPI.*.txt, InternalsVisibleTo, shipped package), also invoke dotnet-breaking-changes; local/private renames do not need it. Also use when a request calls a feature, bug fix, package/framework upgrade, or public nullability change a refactor and the behavior-changing part must be separated or declined. DO NOT USE FOR ordinary feature or bug fixes not presented as refactoring; standalone upgrades after reclassification (use dotnet-upgrade); adding tests; or formatting-only work./csharp-scriptsRun file-based C# apps with the .NET CLI when the user explicitly wants C#/.NET code without creating a project. Use for C# language/API experiments, one-file C# apps, small multi-file C# apps composed with `#:include`/`#:exclude`, or C# file-based apps linked with `#:ref`. Do not use for language-agnostic throwaway scripts, generic computations, Python/PowerShell-style automation, full projects, or existing app integration./dotnet-breaking-changesUse before changing .NET/C# code whose callers you do not control: a NuGet library, or a repo with PublicAPI.Shipped/Unshipped.txt, ApiCompat, multiple TargetFrameworks, InternalsVisibleTo, or generated (.g.cs) partials. Green builds miss silent breaks from optional parameters, parameter names, sealing, const values, nullability, and #if. USE FOR: "without breaking existing callers"; adding a public method, overload, optional parameter, or interface member to a shipped library; renaming a public method or an internal helper a friend assembly uses; consolidating duplicated logic; changing a signature, nullability, default, or attribute; adding a target framework; RS0016/RS0017 or ApiCompat errors; "is this PR breaking?". For a rename, extract, or merge, also invoke csharp-refactoring. DO NOT USE FOR: an executable whose callers all live in one project; renaming a local variable or private member, even in a shipped library; formatting; framework/SDK/NuGet upgrades (use dotnet-upgrade).
/microsoft-code-referenceLook up Microsoft API references, find working code samples, and verify SDK code is correct. Use when working with Azure SDKs, .NET libraries, or Microsoft APIs—to find the right method, check parameters, get working examples, or troubleshoot errors. Catches hallucinated methods, wrong signatures, and deprecated patterns by querying official docs.