[Add] net10.0 as a target framework to all 12 library projects#391
Merged
Conversation
lxatstariongroup
approved these changes
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites
Description
Added
net10.0to<TargetFrameworks>in all 12 library projects. The 10 projects that werenet48;netstandard2.0becomenet48;netstandard2.0;net10.0;CDP4ServicesMessagingandCDP4Webmove fromnetstandard2.0tonetstandard2.0;net10.0. Existingnet48and
netstandard2.0consumers are unaffected.CDP4Common\Polyfills\TypePolyfills.cs:#if NETFRAMEWORK→#if NETFRAMEWORK || NETso net10 uses directType.Assembly/Type.IsValueTypeinstead of theGetTypeInfo()shim — relevant for the MetaInfo /PocoThingFactoryreflection hot path.CDP4Common\Extensions\IEnumerableExtensions.cs: wrapped theDistinctBypolyfill in#if !NETto resolveCS0121ambiguity with the in-boxSystem.Linq.Enumerable.DistinctByon net10.<PackageReleaseNotes>reset to[Add] net10.0 as a Target Frameworkacross all 12 library csproj files.The 22
#if NETFRAMEWORKMEF blocks already correctly route net10 through the#else(no-MEF, plain DI) branch — same contract as the existing netstandard2.0 path. No changes required.Why
Net10 consumers (including this SDK's own
*.NetCore.Testsprojects) currently load thenetstandard2.0build via compatibility shims and pull polyfilled NuGet packages instead of the in-box BCL. A nativenet10.0TFM gives them in-boxSystem.Text.Json(with hardware-intrinsic UTF-8 inUtf8JsonReader/Writer), fasterSpan<T>, optimized ConcurrentDictionary(used heavily inAssembler`), and dynamic PGO over the DTO ↔ POCO conversion pipeline. Purely additive — no breaking changes.