Skip to content

SystemIo: target .NET 10 - #250

Open
ghostflyby wants to merge 1 commit into
ForNeVeR:mainfrom
ghostflyby:pathio-net10
Open

ghostflyby wants to merge 1 commit into
ForNeVeR:mainfrom
ghostflyby:pathio-net10

Conversation

@ghostflyby

@ghostflyby ghostflyby commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add a net10.0 target (the current LTS) to TruePath.SystemIo. With the source generator in place the generator projects the .NET 10 BCL surface for file and directory operations automatically: 116 extension methods on this target, including the new span- and Memory-based overloads:

  • AppendAllText/WriteAllText with ReadOnlySpan contents,
  • AppendAllBytes/WriteAllBytes with ReadOnlySpan,
  • the ReadOnlyMemory-based async counterparts of all of the above.

The existing netstandard2.0 and net8.0 targets are unchanged.

Changes

  • TruePath.SystemIo: add net10.0 to TargetFrameworks, and add the PublicAPI/net10.0/ baseline the repository's API tracking requires. The baseline records the 102 members that already exist on the other targets as shipped, and only the 14 span- and Memory-based overloads this target adds as unshipped. Keeping them shipped matches how the net8.0 and netstandard2.0 baselines are maintained: each lists the full API surface of its target at the last release rather than its difference from the other targets.
  • TruePath.Tests: add a net10.0 target so the reflection completeness test validates the generated net10.0 surface against the matching runtime.

Testing

  • dotnet build TruePath.slnx -p:CI=true: all targets, zero errors and zero warnings (including zero public API diagnostics).
  • dotnet test TruePath.slnx -p:CI=true: 1008/1009 pass; the single skip is the net8.0 leg of the reflection completeness test, which requires a matching .NET 8 runtime. The net10.0 leg runs it fully (493/493).

@ghostflyby
ghostflyby force-pushed the pathio-net10 branch 2 times, most recently from 16e9311 to 17c42c4 Compare November 9, 2026 13:13
@ghostflyby
ghostflyby marked this pull request as ready for review November 9, 2026 13:15
Add a net10.0 target (the current LTS) to TruePath.SystemIo. With the source
generator from ForNeVeR#249 in place this is nearly a one-line change: the generator
projects the per-target-framework BCL automatically, exposing 116 extension
methods on this target, including the new span- and Memory-based overloads:

- AppendAllText/WriteAllText with ReadOnlySpan<char> contents,
- AppendAllBytes/WriteAllBytes with ReadOnlySpan<byte>,
- the ReadOnlyMemory-based async counterparts of all of the above.

The existing netstandard2.0 and net8.0 targets are unchanged.

The net10.0 public API baseline records the 102 members that already exist on the
other targets as shipped, and only the 14 span- and Memory-based overloads this
target adds as unshipped. Keeping them shipped matches how the net8.0 and
netstandard2.0 baselines are maintained: each lists the full API surface of its
target at the last release rather than its difference from the other targets.

TruePath.Tests also gains a net10.0 target so the reflection completeness test
validates the generated net10.0 surface against the matching runtime.

This branch has not been deployed

No deployments
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