Skip to content

Update What's new in .NET 11 for Preview 3#53004

Merged
BillWagner merged 4 commits intomainfrom
copilot/update-whats-new-preview-3
Apr 14, 2026
Merged

Update What's new in .NET 11 for Preview 3#53004
BillWagner merged 4 commits intomainfrom
copilot/update-whats-new-preview-3

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 14, 2026

Updates all four .NET 11 "What's new" articles to cover Preview 3 (released April 14, 2026). All ms.date fields updated to 04/14/2026.

Runtime (runtime.md)

  • Runtime Async: net11.0 projects no longer need <EnablePreviewFeatures>true</EnablePreviewFeatures> — only <Features>runtime-async=on</Features> required. Added NativeAOT/ReadyToRun support and continuation object reuse optimization.
  • JIT: Added switch expression folding into branchless checks and faster uintfloat/double casts on pre-AVX-512 x86; extended bounds-check elimination to cover index-from-end access.
  • WebAssembly (new section): WebCIL payload loading, improved debug symbols, direct float[]/Span<float> JS marshaling.

Libraries (libraries.md)

  • System.Text.Json: JsonNamingPolicy.PascalCase, per-member [JsonNamingPolicy] attribute, and type-level [JsonIgnore(Condition = ...)].
  • Zstandard: APIs moved from the separate preview package into System.IO.Compression (package reference removal noted).
  • ZIP: CRC32 validation now throws InvalidDataException on corrupt entries.
  • I/O (new section): SafeFileHandle.Type, SafeFileHandle.CreateAnonymousPipe, RandomAccess read/write on non-seekable handles (pipes).
  • Regex (new section): RegexOptions.AnyNewLine treats all Unicode newline sequences (\r\n, \u0085, \u2028, \u2029) as line terminators.

SDK (sdk.md)

  • dotnet sln can create/edit solution filters (.slnf).
  • File-based apps support #:include for splitting across files.
  • dotnet run -e KEY=VALUE passes environment variables without shell state changes.
  • dotnet watch: Aspire app-host integration, automatic crash recovery, improved Ctrl+C on Windows desktop apps.
  • dotnet format --framework, dotnet test --artifacts-path (MTP), and dotnet tool exec approval prompt removal.

Overview (overview.md)

  • Updated all section summaries to reflect Preview 3 additions.
  • Added Union types to the C# 15 feature list (IDE support landed in Preview 3).

Snippets

  • Libraries.cs: added JsonNamingIgnore, SafeFileHandlePipe, and RegexAnyNewLine snippet regions; added EventData model with new attributes.
  • Runtime.cs: removed <EnablePreviewFeatures> from the opt-in comment block.

Internal previews

📄 File 🔗 Preview link
docs/core/whats-new/dotnet-11/libraries.md What's new in .NET libraries for .NET 11
docs/core/whats-new/dotnet-11/overview.md What's new in .NET 11
docs/core/whats-new/dotnet-11/runtime.md What's new in .NET 11 runtime
docs/core/whats-new/dotnet-11/sdk.md What's new in the SDK and tooling for .NET 11

Copilot AI linked an issue Apr 14, 2026 that may be closed by this pull request
- Updated all 4 What's new articles for .NET 11 to Preview 3
- Updated ms.date to 04/14/2026 in all files
- runtime.md: simplified Runtime Async opt-in (no EnablePreviewFeatures needed), added NativeAOT/R2R support, added JIT switch folding and uint-float cast improvements, added WebAssembly section
- libraries.md: added System.Text.Json naming/ignore enhancements, Zstandard in System.IO.Compression, ZIP CRC32 validation, SafeFileHandle pipe support, RandomAccess pipe support, Regex AnyNewLine option
- sdk.md: added solution filter CLI support, file-based app #:include, dotnet run -e, dotnet watch improvements, other CLI improvements
- overview.md: updated summaries to reflect Preview 3 features, added union types to C# 15 list
- Updated Libraries.cs snippet with new code samples for Preview 3 features
- Updated Runtime.cs snippet to remove EnablePreviewFeatures comment

Agent-Logs-Url: https://github.com/dotnet/docs/sessions/b44af3f0-172c-4e4f-bb38-d79eed5ce99c

Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Copilot AI changed the title [WIP] Update What's new articles for .NET 11 Preview 3 Update What's new in .NET 11 for Preview 3 Apr 14, 2026
Copilot AI requested a review from BillWagner April 14, 2026 17:47
Copy link
Copy Markdown
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

This is ready.

The snippets issues is because preview 3 docker images aren't available yet.

We should verify the build before merging.

@BillWagner BillWagner marked this pull request as ready for review April 14, 2026 18:29
@BillWagner BillWagner requested a review from a team as a code owner April 14, 2026 18:29
Copilot AI review requested due to automatic review settings April 14, 2026 18:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the .NET 11 “What’s new” content set to reflect Preview 3 (dated 04/14/2026), including new runtime, libraries, and SDK additions, plus refreshed snippets that demonstrate new APIs and behaviors.

Changes:

  • Refreshes all four .NET 11 “What’s new” articles to Preview 3 (including updated ms.date and “last updated” text).
  • Adds new Preview 3 content across runtime (Runtime Async opt-in change, JIT items, WebAssembly section), libraries (Json naming/ignore defaults, ZIP CRC32 validation, low-level I/O, regex), and SDK tooling (solution filters, #:include, dotnet run -e, watch improvements).
  • Updates/extends snippets to cover the new library features and removes the runtime-async preview opt-in property from the snippet comment.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
docs/core/whats-new/dotnet-11/snippets/csharp/Runtime.cs Removes the <EnablePreviewFeatures> line from the runtime-async opt-in snippet comment.
docs/core/whats-new/dotnet-11/snippets/csharp/Libraries.cs Adds new snippet regions for Json naming/ignore, SafeFileHandle pipe APIs, and RegexOptions.AnyNewLine, plus a new EventData model.
docs/core/whats-new/dotnet-11/sdk.md Updates Preview 3 messaging and adds new CLI/tooling sections and examples.
docs/core/whats-new/dotnet-11/runtime.md Updates Preview 3 messaging and adds Runtime Async clarifications, new JIT bullets, and a new WebAssembly section.
docs/core/whats-new/dotnet-11/overview.md Updates the summary bullets to include Preview 3 runtime/libraries/SDK additions and adds a C# 15 “Union types” link.
docs/core/whats-new/dotnet-11/libraries.md Updates Preview 3 messaging and adds new sections for ZIP CRC32 validation, Json naming/ignore defaults, low-level I/O, and regex improvements.

@BillWagner BillWagner closed this Apr 14, 2026
@BillWagner BillWagner reopened this Apr 14, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@adegeo adegeo left a comment

Choose a reason for hiding this comment

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

Approved to unblock. Does it just need the preview 3 packages fully published?

@adegeo adegeo closed this Apr 14, 2026
@adegeo adegeo reopened this Apr 14, 2026
@adegeo
Copy link
Copy Markdown
Contributor

adegeo commented Apr 14, 2026

@BillWagner Verified that .NET 11 Preview 3 is installed for the snippets testing, so that isn't the source of failure.

It should be `asyncRead` and `asyncWrite`, not `asyncReads` and `asyncWrites`.
@BillWagner BillWagner enabled auto-merge (squash) April 14, 2026 20:43
@BillWagner BillWagner merged commit dd25e81 into main Apr 14, 2026
11 checks passed
@BillWagner BillWagner deleted the copilot/update-whats-new-preview-3 branch April 14, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update What's new for Preview 3

4 participants