dotnet / dotnet/announcements

.NET 9 Preview 4

Open
#309 0 comments 0 reactions 0 assignees View on GitHub
.NET 9.0 Preview
Dominant language
No language data
Stars
1.4k
Forks
53
PR merge metrics
No merged PRs in 30d

Description

We are pleased to announce the release of .NET 9 Preview 4. This release contains the following Libraries & Runtime improvements:

- [`UnsafeAccessorAttribute` supports generic parameters](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/runtime.md#unsafeaccessorattribute-supports-generic-parameters)
- [Feature switches with trimming support](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/runtime.md#feature-switches-with-trimming-support)
- [Tokenizer library enhancements](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/libraries.md#tokenizer-library-enhancements)
- [OpenTelemetry: Make activity linking more flexible](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/libraries.md#opentelemetry-make-activity-linking-more-flexible)
- [PDB support for System.Reflection.Emit.PersistedAssemblyBuilder](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/libraries.md#pdb-support-added-for-systemreflectionemitpersistedassemblybuilder)

For details on these new features and more see the [Libraries release notes](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/libraries.md) and [Runtime release notes](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/runtime.md)

Discuss this release with the .NET team on [GitHub Discussions](https://github.com/dotnet/runtime/discussions/102504).

You can find detailed release notes for additional features in .NET 9 Preview 4 below:

### .NET Data & EF Core

- [Enhanced database provider for Azure Cosmos DB for NoSQL](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/efcoreanddata.md#enhanced-database-provider-for-azure-cosmos-db-for-nosql)
- [GroupBy complex types](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/efcoreanddata.md#groupby-complex-types)
- [Read-only primitive collections](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/efcoreanddata.md#read-only-primitive-collections)
- Full [release notes](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/efcoreanddata.md)

### .NET MAUI

- [New Input Keyboards](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/dotnetmaui.md#new-input-keyboards)
- [Android 15 Beta 1 Support](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/dotnetmaui.md#android-15-beta-1-support)
- [NativeAOT improvements for iOS & Mac Catalyst](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/dotnetmaui.md#native-aot-for-ios--mac-catalyst)
- Full [release notes](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/dotnetmaui.md)

Discuss this release with the .NET MAUI team on [GitHub Discussions](https://github.com/dotnet/maui/discussions/22553)

### ASP.NET Core

- [Built-in support for OpenAPI document generation](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/aspnetcore.md#built-in-support-for-openapi-document-generation)
- [Introducing `HybridCache`](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/aspnetcore.md#introducing-hybridcache)
- [Developer exception page improvements](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/aspnetcore.md#developer-exception-page-improvements)
- [Added `OverscanCount` parameter to `QuickGrid`](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/aspnetcore.md#added-overscancount-parameter-to-quickgrid)
- [Add static SSR pages to a globally-interactive Blazor Web app](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/aspnetcore.md#add-static-ssr-pages-to-a-globally-interactive-blazor-web-app)
- [Avoid 503's during app recycle in IIS](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/aspnetcore.md#avoid-503s-during-app-recycle-in-iis)
- Full [release notes](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/aspnetcore.md)

Discuss this release with the ASP.NET Core team on [GitHub Discussions](https://github.com/dotnet/aspnetcore/discussions/55820).

### WPF

- [Theming improvements – Support for Windows 11 theming for WPF apps](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/wpf.md#support-for-windows-11-theming)
- [Hyphen based ligature support](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/wpf.md#hyphen-based-ligature-support)
- Full [release notes](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/wpf.md)

## Get started
To get started with .NET 9, [install the .NET 9 SDK](https://dotnet.microsoft.com/download/dotnet/9.0).

If you're on Windows using Visual Studio, we recommend installing the latest [Visual Studio 2022 preview](https://visualstudio.microsoft.com/vs/preview/), or get started with Visual Studio Code and the [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) extension.

You can find [.NET 9 Preview 4 Installer & Binaries](https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/9.0.0-preview.4.md) on GitHub.

## Team Announcements & Discussions
Discuss this release with the product teams on GitHub through the announcements for this release.

* [.NET MAUI](https://github.com/dotnet/maui/discussions/22553)
* [ASP.NET Core](https://github.com/dotnet/aspnetcore/discussions/55820)
* [Libraries & Runtime](https://github.com/dotnet/runtime/discussions/102504)

## Stay up-to-date with .NET 9
You can stay up-to-date with all the features of .NET 9 with:

* [What's new in .NET 9](https://learn.microsoft.com/dotnet/core/whats-new/dotnet-9/overview)
* [What's new in ASP.NET Core](https://learn.microsoft.com/aspnet/core/release-notes/aspnetcore-9.0)
* [What's new in .NET MAUI](https://learn.microsoft.com/dotnet/maui/whats-new/dotnet-9)
* [What's new in EF Core](https://learn.microsoft.com/ef/core/what-is-new/ef-core-9.0/whatsnew)
* [Breaking Changes in .NET 9](https://learn.microsoft.com/dotnet/core/compatibility/9.0)
* [.NET 9 Releases](https://github.com/dotnet/core/blob/main/release-notes/9.0/README.md)

For .NET 9 previews we are utilizing GitHub Discussions to make announcements. For more information [read our discussion](https://github.com/dotnet/core/discussions/9131).

Stay up to date by subscribing to the [RSS feed](https://github.com/dotnet/core/discussions/categories/news.atom) for all release announcements.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.