๐ ๐ถ๐ฐ๐ฟ๐ผ๐๐ผ๐ณ๐ ๐๐๐๐ ๐ฅ๐ฒ๐น๐ฒ๐ฎ๐๐ฒ๐ฑ .๐ก๐๐ง ๐ด ๐ฃ๐ฟ๐ฒ๐๐ถ๐ฒ๐ ๐ญ - ๐ฅ๐ฒ๐ฐ๐ฎ๐ฝ
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.