Skip to content

[release-notes] .NET 11 Preview 4#10388

Draft
danroth27 wants to merge 4 commits intomainfrom
release-notes/11.0-preview4
Draft

[release-notes] .NET 11 Preview 4#10388
danroth27 wants to merge 4 commits intomainfrom
release-notes/11.0-preview4

Conversation

@danroth27
Copy link
Copy Markdown
Member

Release notes for .NET 11 Preview 4.

This is the base PR for the milestone — it carries the shared metadata
(README.md, changes.json, build-metadata.json, features.json). Each
component file ships in its own PR targeting this branch so component teams
review their own file in isolation. See release-notes skill / pr-layout.md.

The component PRs will be linked back here as they open.

Generated end-to-end by the release-notes skill (dry-run promoted to real
PRs after local validation). AI-authored content; component teams should vet
for accuracy and resolve any inline <!-- TODO --> placeholders before
marking their PR ready for review.

danroth27 and others added 3 commits May 8, 2026 14:11
* [release-notes] .NET Libraries in .NET 11 Preview 4 (initial)

* [release-notes] Author libraries.md content

* Remove S.S.Crypto.Xml and LDAP change entries

* Fix verified API errors in 11.0 Preview 4 libraries release notes

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]>

* Resolve remaining TODOs in 11.0 Preview 4 libraries notes

- 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]>

---------

Co-authored-by: danroth27 <[email protected]>
Co-authored-by: Jeff Handley <[email protected]>
Co-authored-by: Copilot <[email protected]>
* [release-notes] Containers in .NET 11 Preview 4 (initial)

* Add .NET containers preview 4 release notes

---------

Co-authored-by: danroth27 <[email protected]>
Co-authored-by: Logan Bussell <[email protected]>
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