Tech

Introducing Microsoft .NET 6 | InfoWorld

With the release of .NET 5 last year, Microsoft switched platform development from the .NET Framework 20 years ago to the new cross-platform open source .NET Core. The .NET Framework has moved into maintenance mode, but the new .NET has completed its separation from the Windows release cycle and completes with the new rhythm of the annual release.

In that new rhythm, .NET 5 is called the currently supported release, and .NET 6 in 2021 is intended to be the first long-term supported version of the new platform. This provides three years of support, as opposed to support for .NET 5, which ends in early 2022, three months after the release of .NET 6. The current release can be thought of as a pioneering new feature primarily for developers with regular updates for consumer applications. Long-term support fits better with enterprise product lifecycles and support models.

Enterprise developers are best treated with .NET 5 as a platform to support application migration from the older .NET Framework. It takes a year to start migrating and deploying your application. With the advent of .NET 6 towards the end of 2021, more features and cross-platform support will be enhanced to help you reach your goals. Code built for .NET 5 runs on .NET 6 and can be updated to take advantage of new releases of additional options and APIs.

.NET 6 Preview 1 Highlights

If you want to get started with .NET 6, the first preview release is available. It’s not perfect, but you can try building .NET 6 code with .NET 5. The SDK and runtime can be downloaded from Microsoft’s .NET site and are ready to use with the current preview build of Visual Studio 2019 (Visual Studio 16.9 Preview 4). Or later). There is currently language support for C # 9.0, F # 5.0, and Visual Basic 16.0, and more languages ​​will be supported as the platform evolves throughout 2021. The download includes a runtime for new console and server apps, a runtime for Windows desktop apps, and a runtime for ASP. .NET Core web app. As with previous releases, Windows, Linux, and macOS are supported, and ARM is supported on Windows and Linux in addition to x64.

One of the most important parts of .NET 6 is its position in the .NET cross-platform and integration story, bringing Xamarin to the .NET fold as a key part of the framework rather than an alternative implementation. This allows you to target macOS, Android, and iOS directly from the same code set using the Multiplatform App UI (MAUI) framework under development. This is a continuation of the .NET 5 started process, but far ahead of WebAssembly.

The .NET team is taking an approach that allows them to draw lessons from other parts of the .NET ecosystem. One of these, Hot Reload, is an important element of the Xamarin development model. By allowing code changes to be reflected in the running code, Xamarin developers can test their code without having to go through a complete build cycle. Although not included in the current preview, the team plans to introduce similar functionality in all XAML and C # developments. Treating all your code as if you could test it in the REPL can speed up the development of graphic elements in your app, especially when designing can be an interactive process.

Copyright © 2021 IDG Communications, Inc.

Introducing Microsoft .NET 6 | InfoWorld

Source link Introducing Microsoft .NET 6 | InfoWorld

Related Articles

Back to top button