Skip to content

[release-notes] .NET Libraries in .NET 11 Preview 4 - #10395

Merged
jeffhandley merged 5 commits into
release-notes/11.0-preview4from
release-notes/11.0-preview4-libraries
May 8, 2026
Merged

jeffhandley merged 5 commits into
release-notes/11.0-preview4from
release-notes/11.0-preview4-libraries

Conversation

@danroth27

Copy link
Copy Markdown
Member

.NET Libraries release notes for .NET 11 Preview 4.

Targets the milestone base branch #10388. Merging this PR
into release-notes/11.0-preview4 adds libraries.md to the milestone.

Generated end-to-end by the release-notes skill. AI-authored content;
please review for accuracy, resolve any inline <!-- TODO --> placeholders,
and then mark this PR ready for review.

cc @artl93 @jeffhandley @SamMonoRT @karelz

jeffhandley and others added 3 commits May 8, 2026 12:22
Verified each API claim against Microsoft.NETCore.App.Ref 11.0.0-preview.4
from the dotnet11 feed and against the locally installed runtime. Fixes
six issues (five compile-time, one runtime):

- Process snippet: ProcessResult does not exist (it is ProcessTextOutput),
  result.ExitCode does not exist (it is result.ExitStatus.ExitCode), and
  the ProcessStartInfo overload of RunAndCaptureTextAsync throws at
  runtime unless RedirectStandardOutput/Error are set. Switched to the
  cleaner (string fileName, IList<string> arguments) overload.
- ZLib snippet: ZLibEncoder.Compress is an instance method, and the 5th
  parameter is bool isFinalBlock (not CompressionLevel). Switched to
  instantiating the encoder and calling Compress with isFinalBlock: true.
- Floating-point hex snippet: double.Parse requires NumberStyles.HexFloat
  to parse the hex form; without it, the snippet throws FormatException
  at runtime. Also corrected the example output casing to match what
  ToString("X") actually emits (uppercase 0X and P).
- F# discriminated unions: System.Text.Json's PR 125610 ships an
  adjacently-tagged shape with $type discriminator and named fields,
  not the {Case, Fields} envelope shown in the snippet.
- LINQ tuple-overload section: removed entirely. PR 126624 reverted all
  four tuple overloads (Join/LeftJoin/RightJoin/GroupJoin), and the
  reinstatement (PR 126649) merged to main only and was not back-ported
  to release/11.0-preview4. Updated the filtered-features comment to
  reflect this.

Removed the four resolved TODO markers. Three TODO markers remain
(ConfigurationIgnoreAttribute namespace verified separately, MemoryCache
OTel instrument names, and the C# DU language proposal link).

Co-authored-by: Copilot <[email protected]>
- ConfigurationIgnore: drop verification marker (already in
  Microsoft.Extensions.Configuration namespace, confirmed via
  dotnet-inspect against PR 126396).
- MemoryCache OTel: name the four observable instruments emitted by
  the new Microsoft.Extensions.Caching.Memory.MemoryCache meter
  (dotnet.cache.requests with dotnet.cache.request.type=hit|miss,
  dotnet.cache.evictions, dotnet.cache.entries,
  dotnet.cache.estimated_size); document the
  MemoryCacheOptions.TrackStatistics opt-in and the IMeterFactory
  parameter on the new constructor. Confirmed at runtime against
  Microsoft.Extensions.Caching.Memory 11.0.0-preview.4.26224.122
  using a MeterListener probe.
- Discriminated unions: link to the C# unions language proposal
  (dotnet/csharplang/blob/main/proposals/unions.md) and champion
  issue dotnet/csharplang#9662.

Co-authored-by: Copilot <[email protected]>

@jeffhandley jeffhandley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made several fixes, pushing to the branch. Looks good to me now.

@jeffhandley
jeffhandley marked this pull request as ready for review May 8, 2026 21:43
@jeffhandley
jeffhandley requested review from leecow and rbhanda as code owners May 8, 2026 21:43
@jeffhandley
jeffhandley merged commit 2e8a3c5 into release-notes/11.0-preview4 May 8, 2026
7 of 9 checks passed
@jeffhandley
jeffhandley deleted the release-notes/11.0-preview4-libraries branch May 8, 2026 21:43
@gewarren

Copy link
Copy Markdown
Contributor

@danroth27 @jeffhandley Does this include updates from the dotnet/extensions repo as well, or just dotnet/runtime? If the latter, how do we document what's new for the dotnet/extensions repo?

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.

6 participants