Image
.net Framework

Why should you start with .NET 5?

Jaywant Nikam
June 7, 2021

We all know, Microsoft's .NET technology has been the most popular technology for the past two decades in the IT industry, growing from desktop applications to web applications, microservices, APIs, mobile applications, etc. Subsequently, they released many frameworks like the .NET framework, .NET compact framework, .NET Micro Framework, DotGNU, Mono, XNA Framework with great support, efficiency, and as preindustrial requirements.

In this article, we have attempted to explain the basics of .NET 5.0 and all the necessary reasons to start with .NET 5.

.NET Framework Timeline

.net
Image Source: Nimble Gecko
  • .NET Framework was first released on 13 February 2020 and then followed the nine versions: Visual Studio.
  • Along with this wide range of releases, they introduced frameworks for mobile, desktop, web applications, and embedded devices such as set-top boxes, etc.
  • .NET Framework had one major flaw: cross-platform framework .Net framework was not a cross-platform framework.
  • To achieve cross-platform compatibility, they released .NET Core with new features like open-source, modular architecture, lightweight, fast, etc.

Introduction to .NET 5 Framework

The evolution continued for the .Net framework, and now, they have introduced significant updates on .NET core versions called .NET 5, released in November 2020. This is the next version of the .NET core, which has all Microsoft's frameworks under one roof. It is a unified platform used to develop various resources like desktop, web, cloud, mobile, gaming, IoT, AI, etc., with long-term Microsoft support. They have skipped .NET version 4 to dispel the confusion between the .NET Framework version 4.X series and enable the developer to communicate with .NET 5 directly. It will also be supported with future updates to Visual Studio 2019, Visual Studio for Mac, and Visual Studio Code. The .NET 5 is also known as ONE.NET.

.net
Image Source: Microsoft

Key features to improve .NET 5

  • To provide a unified runtime development experience to produce a framework as a single station
  • Build a single code-based product, so the developer can develop all possible scenarios and also expand together
  • Expand .NET 5 by utilizing the best of .NET Framework, Xamarin, Mono, and .NET Core

Some features inherited from .NET Core are:

  • Cross-Platform implementation
  • Open source and strong community support on GitHub
  • Developer benefits of platform-specific capacity such as windows forms, a native platform like Xamarin
  • Highly efficient
  • Supports command-line interface (CLI)
  • Great Support with Visual Studio, Visual Studio for Mac, and Visual Studio Code

Runtime experience in .NET 5

Let us consider the two runtimes, Mono which is famous for developing apps for mobile devices, and Core CLR that is used to run .NET Core applications. As .NET 5, considering all are in one line, they make it a build switch between the different runtime options.

Productivity and throughput in .NET 5

.NET uses the just-in-time compiler to translate code in CPU instructions. It is the most efficient code compiler used to produce efficient specific CPU instructions. .NET 5 has the same productivity and throughput as we have in .NET core and .NET Frameworks.

.NET 5 MAUI

.NET 5 introduces the new Multi-platform App UI cross-platform native UI development framework in which users can build interfaces for Android, iOS, macOS, and Windows platforms. This is a major update on Xamarin Forms, and it supports a new Model-View-Update (MVU) pattern.

Single file application in .NET 5

Your code, dependencies, and .NET runtime will be bundled into a single file and this file can publish and deploy, even if you don't need to install .NET runtime for the target environment. This kind of functionality supported by .NET 5.

No Support in .NET 5, but you have an alternative.

  1. Web forms: Web forms are not supported from .NET Core, so in .NET 5, they continue to not supporting it. But you have an excellent alternative for traditional web development as Razor pages and single-page applications as Blazor.
  2. Windows Communication Foundation: The Windows Communication Foundation is traditional service-oriented communication for windows. Still, as .NET 5 is a cross-platform framework, there is a present alternative as CoreWCF, a past feature of .NET Core.
  3. Windows Workflow Foundation: Windows workflow foundation is workflow engine technology provided by .NET Framework. So, they suggest using CoreWF in .NET 5 technology.

Key Features which will make you choose .NET 5

  • Developers can choose their operating system to develop the application as they have a given Integrated Development Environment as a Visual Studio. Visual Studio Code runs on macOS, Linux, Windows with third party debugging and IntelliSense.
  • Azure Service Fabric and Azure App Service's remarkable capability allows entry in microservices with mixed microservice support like Ruby, Java, etc.
  • You can develop and deploy containerized images with .NET 5; they are lightweight and modular, making you a better choice for container development technology.

.NET Release Schedule

.net
Image Source: Microsoft

As .NET 5 released in November 2020, the next release, i.e., .NET 6, is expected on November 2021 with Long term Support (LTS). Finally, .NET 7 should be expected to release November 2022 and .NET 8 in November 2023.

About the Author

Jaywant Nikam, Associate Software Engineer, Cloud ADM - Microsoft

Jaywant Nikam is a software developer who works as a full-stack .NET developer, and specializes in C#, MVC, Angular, React, and Azure technologies. He has designed, developed, and executed several MVC, Angular, React applications from scratch for various clients and internal projects (JEX).

Add New Comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.