Skip to content

POC: Add .NET 10 Target#1064

Closed
mtmk wants to merge 1 commit intomainfrom
poc-net10
Closed

POC: Add .NET 10 Target#1064
mtmk wants to merge 1 commit intomainfrom
poc-net10

Conversation

@mtmk
Copy link
Copy Markdown
Member

@mtmk mtmk commented Feb 13, 2026

Minimum required changes to add .NET 10 target:

  • X509Certificate2 constructors obsoleted (SYSLIB0057) — .NET 10 deprecates loading certificates via new
    X509Certificate2(...) and X509Certificate2Collection.Import(...). The replacement is X509CertificateLoader with methods
    like LoadPkcs12(), LoadPkcs12FromFile(), and LoadPkcs12CollectionFromFile().

  • Span null comparison (CA2265) — .NET 10 flags comparing Span / ReadOnlySpan to null as an error, since null is
    implicitly converted to Span.Empty, making the check redundant.

  • TFM-conditional package references — csproj conditions that matched specific TFMs (e.g. == 'net8.0') didn't account for
    net10.0, causing it to fall through to older package versions missing required APIs (keyed DI services).

TODO:

@mtmk
Copy link
Copy Markdown
Member Author

mtmk commented Feb 19, 2026

copied to #1070

@mtmk mtmk closed this Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant