Back

Monday, 30 January 2023 | 19:47 | Author by Arif Madya

.NET Developments During 2022

Over the past year (during 2022) there were some updates and developments on the .NET platform by Microsoft. .NET (pronounced dot net) is a software development platform that serves as a framework for application development.

In .NET, various frameworks are available for application development, ranging from web applications, and mobile applications, to Artificial Intelligence applications. For complete information about the .NET platform, you can visit the page: Getting to Know .NET: A Platform That Can Build Everything

But what are the developments in .NET throughout 2022? Here are the updates and explanations:


Launch of .NET 7

.NET 7 was officially introduced in November 2022. Quoting from the Microsoft website, the features contained in .NET 7 include: improved performance and new features for C# 11/F# 11, .NET MAUI, ASP.NET Core/Blazor, Web API, WinForms, WPF and more. Additionally, with .NET 7 we can easily package projects, set up CI/CD workflows within GitHub, and achieve cloud-native observability capabilities.


Microsoft Releases .NET MAUI


Image source: devblogs.microsoft.com


.NET Multi-platform App User Interface (.NET MAUI) is a Multi-platform Application UI that enables developers to build cross-platform applications for iOS, Android, Mac, and Windows from a single code base together. .NET MAUI was officially released in May 2022. When viewed from its function, many think that .NET MAUI is a replacement for Xamarin, but Microsoft stated that .NET MAUI is a complement to Xamarin.


Latest Update .NET Framework 4.8.1

In August 2022, Microsoft announced the release of the .NET Framework 4.8.1 and this framework is included in Visual Studio 2022 version 17.3. This framework is available for download on Windows 10 Version 20H2+ and Windows Server 2022+. The .NET Framework 4.8.1 supports the Arm64 architecture (Windows 11+) and accessibility improvements and other improvements. New features in .NET Framework 4.8.1 include:

  • Native support for Arm64
    The .NET Framework 4.8.1 adds Arm64 native support to the .NET Framework family.

  • Accessible Tooltips WCAG2.1 Compliant
    The .NET Framework 4.8.1 provides two Windows UI development platforms, both of which provide the support developers need to create accessible applications for users.

  • Windows Forms - Accessibility Improvements
    WinForms adds support for UIA text mode. Microsoft also fixed high contrast issues in some controls, and fixed some DataGridView issues.


C# 11 update


Image source: devblogs.microsoft.com


Along with the launch of .NET 7, Microsoft also updated its programming language, namely C# version 11. There are several new features, which make it easier for us as developers to use this programming language, including:

  • “Hole” in interpolated chains
    C# supports two types of interpolated strings: verbatim interpolated and non-verbatim interpolated ($@"" and $""). The key difference here is that verbatim interpolated strings can contain new lines of code in their text segments and can only be escaped within the proper " “ quotes. This is not the case with non-verbatim interpolated strings; in this case, the escape character (such as /r/n) ) is used.

  • List patterns
    The new list pattern allows us to match lists and arrays. We can match elements and optionally include a slice pattern that matches zero or more elements. By using the slice pattern, we can remove or take zero or more elements.

  • Null-checking parameters
    With null-checking parameters, we can abbreviate our point by adding !! to the parameter name. Code will be generated to perform a null check. The resulting null check will be executed before any code in the method. The null-checking parameter makes it easy for us to check at runtime whether a null has been passed to our code.


Those are the updates and developments for .NET in 2022. There have been quite a few updates last year, especially with the launch of .NET 7. For other interesting information about technology and IT, visit: Radya Blog.


Source: https://devblogs.microsoft.com/dotnet/top-dotnet-blog-posts-of-2022/