2022. October 11.
.NET, or dotnet if you prefer, is a framework created by Microsoft for developing applications in a variety of categories. .NET is a very popular framework due to its multi-platform, free and open-source nature. Currently, .NET 6 (dotnet 6) is the latest official version, but the latest version, .NET 7 (dotnet 7), will arrive in November 2022.
Continuous development of IT systems and frameworks is essential for survival and continuous finetuning. The environment is changing dynamically, and the IT infrastructure needs to adapt swiftly to that. That's why the latest version of .NET, .NET 7, is now available in previews, but the official dotnet 7 will not arrive until November.
What's new in .NET 7?
Immediately after the release of .NET 6, developers started preparing for .NET 7 and the new features and functionality that are expected to be released have already been announced. Let's see what .NET 7 will look like!
- Native AOT: One of the new features in .NET 7 is native AOT (Ahead-Of-Time). This will significantly increase performance. Data structures do not focus on compiling new code at runtime, but instead, run the code generated by AOT.
- Managed Extensibility Framework update.
- Improved observability.
- Faster startup: startup times have been improved by 10-15%, thanks to a reduction in the number of changes after code creation and execution.
- More secure generation of X.500: The addition of the X500DistinguishedName class has eliminated problems with previous name generation.
- Merging Blazor and .NET MAUI: Blazor can run application views on the client side, while .NET MAUI is a framework specifically designed for mobile app development. Microsoft is merging these in .NET 7.
- Modern Cloud: Modern cloud simplifies cloud technology-based application creation.
- Simplified app updating: Easier update processes are introduced with a well-functioning support service.
- Hot Reload: Hot Reload, popular in .NET 6, will be updated in .NET 7. It will be available in Blazor WebAssembly, and .NET Android and iOS.
- Exposed Methods: Improving the efficiency of performance tests.
- Time seconds and nanoseconds: microseconds and nanoseconds are added to date and time structures.
- Single and multiple memory cache options: a single memory cache can be created using the AddMemoryCache API. However, multiple memory caches can also be generated.
- Tar APIs: thanks to the multi-platform API, tar archives can be expanded and modified.
- OSR: allows you to change the executed code during execution. This can increase speed by 25%.
- UTF-8 and UTF-16: UTF-8 and UTF-16 strings can be copied without decoding.
- Regex Source Generator: thanks to this improved version, you can cut optimisation time by a fifth.
- SDK improvements: more intuitive and efficient page loading.
- Command names change: the - prefix is no longer included in .NET 7.
- Tab padding: tab padding is supported, enabling more functions.
- Dynamic PGO: Dynamic PGO only requires the developer to run the application to be optimized.
- System.Reflection: it is responsible for storing metadata, and facilitating retrieval.
- Loop optimization: the initialization conditions for loop cloning variables have been removed.
- Label enumeration methods: using ActivityEvent, ActivityLink is available, so enumeration of objects can be performed without performance degradation.
.NET 7 has a lot of new features. We look forward to the official release in November!
This blog post is based on a post by dotnetsafer.