The LTS Baseline: Why .NET 10 Support Is an Architectural Change
Jeninnet.Validation 1.0.0-preview.2
Release at a glance:
1.0.0-preview.2· .NET 10 (LTS) baseline · .NET 11 additive · 25 packages · 1,038 tests · MIT
The same rule model, with an LTS foundation and an additive .NET 11 capability layer.
The first preview of Jeninnet.Validation was a deliberate platform bet. It targeted .NET 11 (STS),
used C# 15, and built the whole package set around the newest runtime. That was coherent as an
engineering position. It was also expensive as an adoption request: a team had to move its runtime
before it could evaluate the validation framework.
A validation library should not ask for a platform migration as the price of a trial.
The second preview changes that. net10.0 is now the baseline for every shipping library. net11.0
is additive for the packages that actually expose .NET 11-only APIs. The public API and the rule
model stay the same. What changes is the packaging boundary between the rule and the runtime.
That boundary is the interesting part. “Support .NET 10” sounds like a target-framework switch. In
practice it is a set of decisions about dependency lines, asset selection, and verification. This
article is about those decisions.
What changed
The result is a two-lane package set:
-
lib/net10.0exists for all 25 packages. A .NET 10 application resolves it directly. -
lib/net11.0exists for five packages:DataAnnotations,Extensions.Validation,OpenApi,OpenApi.Swashbuckle, andOpenApi.NSwag. - A .NET 11 application resolves the net11 asset where one exists, and the binary-compatible net10 asset otherwise.
- All packages keep the same package ID and the same public API. There is no “LTS edition” and no “STS edition” to choose between.
The five-package split is not an arbitrary compromise. It follows the dependency graph. A package
needs a net11 asset when it exposes a .NET 11-only API or depends on a package that is net11-only.
The core engine, the rules, the descriptors, the JSON Schema writer, the client-rule writer, and most
host adapters do not. Their net10 assets run on .NET 11 without a second build.
This is the difference between multi-targeting as a capability boundary and multi-targeting as
a packaging reflex. Building 25 packages twice would add package size, test combinations, and
conditional code without adding a capability. Building five packages twice is the minimum required
to keep the API surface honest.
The hard part is not the attribute
The core engine was already portable. The difficult dependency was OpenAPI.
To support .NET 10 and .NET 11 on the same package ID, the OpenAPI adapters need two dependency
lines:
| Target | Microsoft.AspNetCore.OpenApi | Microsoft.OpenApi | Swashbuckle |
|---|---|---|---|
net10.0 | 10.0.14 | 2.12.2 | 10.3.1 |
net11.0 | 11.0.0 | 3.11.0 | 11.0.1 |
The two Microsoft.OpenApi lines are not interchangeable. ASP.NET Core OpenAPI 11 is net11.0-only
and requires Microsoft.OpenApi 3.x. ASP.NET Core OpenAPI 10 uses the 2.x line. Swashbuckle 11 follows
Microsoft.OpenApi 3.11, so the net10 path must stay on Swashbuckle 10.3.1. NSwag remains on 14.8.0
because it does not share the same dependency line.
The same pattern appears in the validation bridge, but for a different reason. On .NET 11, the
Microsoft.Extensions.Validation adapter implements IValidatableTypeInfo and
IValidatableParameterInfo. On .NET 10, those interfaces do not exist; the bridge uses
IValidatableInfo instead. The public API is the same, but the runtime contract is not.
That is a real behavioral boundary, not a build detail. Parameter-level validation through the
.NET 11 validation pipeline is a .NET 11 capability. The net10 bridge validates types through the
older contract. The article should say that plainly, and the documentation does.
Why package versions are conditional
A single central package version is easier to reason about, but it cannot describe two incompatible
dependency lines. The repository now selects package versions per target framework:
-
Microsoft.AspNetCore.OpenApi: 10.0.14 on net10, 11.0.0 on net11. -
Microsoft.OpenApi: 2.12.2 on net10, 3.11.0 on net11. -
Swashbuckle.AspNetCore.SwaggerGen: 10.3.1 on net10, 11.0.1 on net11. -
Microsoft.Extensions.*: 10.0.14 on net10, 11.0.0 on net11. -
Microsoft.AspNetCore.TestHost: 10.0.14 on net10, 11.0.0 on net11.
This is not free. It means a package's dependency graph depends on the asset a consumer resolves,
and that the package validation gate must inspect the actual .nupkg, not just the source build.
It also means a net11-only test project must sometimes pin its dependency line explicitly, because
the central package versions are evaluated before the project body sets its target framework.
The alternative — forcing every consumer onto one dependency line — would have been simpler to
build and worse to use. A .NET 10 application should not be asked to resolve Microsoft.OpenApi 3.x
just because a validator can describe a schema.
Verification is part of the design
The release does not claim support from a TargetFramework property. It demonstrates it:
- 1,038 tests pass across
net10.0andnet11.0(997 on the net10 baseline). - The bridge and OpenAPI adapter suites run on both targets in separate net11 test projects.
- Per-target output paths keep net10 and net11 dependency assets from mixing in one
binfolder. - Package validation, package-content checks, and a consumer smoke test run on both targets.
- The NativeAOT smoke harness publishes and runs the engine on the net10 baseline.
- Public API baselines, message-key checks, documentation links, README claims, and formatting gates pass on the release commit.
The test split is deliberate. A multi-target test project can confuse design-time tooling that
loads one workspace per project, especially when source generators are involved. Separate net11 test
projects keep the format gate and the runtime matrix independent. The result is more projects, but
fewer hidden assumptions.
What did not change
The rule model did not change. The descriptors did not change. The public API did not change.
If a team already uses 1.0.0-preview.1, moving to 1.0.0-preview.2 is a package update, not a
rewrite. The same generated validators, fluent validators, rule sets, conditions, collection rules,
metadata pipeline, localization packs, and host adapters are present. The difference is which asset
the package manager selects.
That is the test of a good compatibility change: the consumer should notice the runtime support, not
a new API.
What this means for adoption
The first preview asked teams on .NET 10 to wait or to move. The second preview removes that choice
from the trial. A team can add the core package and the analyzer to an existing LTS application,
validate one model, inspect the generated code, call Describe(), and compare the schema with the
contract it already publishes. The runtime stays where it is.
Teams on .NET 11 keep the bridge path: the same package IDs, the newer validation contracts, and the
net11 OpenAPI dependency line. The net10 assets remain available as the fallback for packages that
do not need a net11 asset.
This is not a fork. It is a package graph with two asset lanes and one public surface.
Honest limits
The preview still has boundaries worth stating before adoption:
- The net10 validation bridge uses
IValidatableInfo, not the .NET 11 parameter contracts. Parameter-level validation through the .NET 11 pipeline is a net11 capability. - Async DataAnnotations and async Options remain deferred to
1.1.0-preview.1on both targets. - OpenAPI has two dependency lines. A consumer that mixes its own
Microsoft.OpenApiversion with the adapter must keep the version inside the matching range. - Models must declare a namespace. Global-namespace models are not supported in this preview.
- Built-in rules are sealed. Extend through
Custom/CustomAsync,RuleTemplate,SyncValidateRule/AsyncValidateRule, or the rule interfaces. - Coverage figures are being refreshed on the dual-target release commit; the existing ReportGenerator baseline was captured before the target split.
- This is still a preview. The API is baselined and documented, but the compatibility policy is a preview policy, not a stable-release guarantee.
None of these limits disappears because the package now targets .NET 10. They define the shape of
the support, which is more useful than claiming that support is unconditional.
The rule outlives the runtime
A runtime target is a deployment decision. A rule model is a design decision. A framework should
not force the second to follow the first.
The .NET 10 preview is an attempt to keep that boundary clean: one rule declaration, one engine,
two asset lanes, and no second public API. The interesting question is not whether the package
builds for net10.0. It is whether the same rule can be declared once and still mean the same thing
on every runtime the system uses.
If that is the problem you recognize, the preview is ready for a focused trial on .NET 10 — and the
net11 path is still there when you need it.






