𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁 𝗝𝘂𝘀𝘁 𝗥𝗲𝗹𝗲𝗮𝘀𝗲𝗱 .𝗡𝗘𝗧 𝟴 𝗣𝗿𝗲𝘃𝗶𝗲𝘄 𝟭 - 𝗥𝗲𝗰𝗮𝗽
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.