Announcing .NET 8 Preview 1 - .NET Blog

๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—๐˜‚๐˜€๐˜ ๐—ฅ๐—ฒ๐—น๐—ฒ๐—ฎ๐˜€๐—ฒ๐—ฑ .๐—ก๐—˜๐—ง ๐Ÿด ๐—ฃ๐—ฟ๐—ฒ๐˜ƒ๐—ถ๐—ฒ๐˜„ ๐Ÿญ - ๐—ฅ๐—ฒ๐—ฐ๐—ฎ๐—ฝ

As we all know, .NET 8 will be long-term support (LTS) release, which we expect in November 2023. Microsoft will invest more in: ASP.NET Core, Blazor, EF Core, WinForms, WPF, and other platforms.

What is new:

๐Ÿญ. ๐—ก๐—ฎ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—”๐—ข๐—ง. Brings to you ahead-of-time compilation (AOT) that massively improves the perfornmances of .NET apps. It will reduce your memory footprint and improve the startup time of your app.

๐Ÿฎ. .๐—ก๐—˜๐—ง ๐—–๐—ผ๐—ป๐˜๐—ฎ๐—ถ๐—ป๐—ฒ๐—ฟ ๐—ถ๐—บ๐—ฎ๐—ด๐—ฒ๐˜€. We can now use container images to package and deploy apps across different environments. The default Linux distro is Debian 12 now.

๐Ÿฏ. ๐—œ๐—บ๐—ฝ๐—ฟ๐—ผ๐˜ƒ๐—ฒ๐—บ๐—ฒ๐—ป๐˜๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—๐—ฆ๐—ข๐—ก ๐—ต๐—ฎ๐—ป๐—ฑ๐—น๐—ถ๐—ป๐—ด. The source generator now supports serializing types with required and init properties, as well as interface hierarchy support.

๐Ÿฐ. ๐—ก๐—ฒ๐˜„ ๐—บ๐—ฒ๐˜๐—ต๐—ผ๐—ฑ๐˜€ ๐—ฎ๐—ป๐—ฑ ๐˜๐˜†๐—ฝ๐—ฒ๐˜€ ๐—ณ๐—ผ๐—ฟ ๐—ฝ๐—ฒ๐—ฟ๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐—ป๐—ฐ๐—ฒ ๐—ถ๐—บ๐—ฝ๐—ฟ๐—ผ๐˜ƒ๐—ฒ๐—บ๐—ฒ๐—ป๐˜๐˜€. The new System.Collections.Frozen namespace provides FrozenDictionary<TKey, TValue> and FrozenSet collections. These types provide an immutable surface area such that, once created, no changes are permitted to the keys or values.

๐Ÿฑ. ๐——๐—ผ๐˜๐—ป๐—ฒ๐˜ ๐—ฝ๐˜‚๐—ฏ๐—น๐—ถ๐˜€๐—ต and ๐—ฑ๐—ผ๐˜๐—ป๐—ฒ๐˜ ๐—ฝ๐—ฎ๐—ฐ๐—ธ will produce release assets by default.

๐Ÿฒ. You can now ๐—ฏ๐˜‚๐—ถ๐—น๐—ฑ ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ผ๐˜„๐—ป .๐—ก๐—˜๐—ง on Linux directly from dotnet/dotnet repo.

Also, you can now ๐˜‚๐—ฝ๐—ด๐—ฟ๐—ฎ๐—ฑ๐—ฒ ๐—ฎ๐—ป๐˜† .๐—ก๐—˜๐—ง ๐—ฎ๐—ฝ๐—ฝ๐—น๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐˜ƒ๐—ฒ๐—ฟ๐˜€๐—ถ๐—ผ๐—ป to the latest version of .NET inside of Visual Studio, with an extension: .NET Upgrade Assistant - Visual Studio Marketplace.