Contact us
Our team would love to hear from you.
Let’s look at some statistics first. Enlyft has data on 219,800 companies that use Microsoft .NET in their tech stacks, including Accenture, Stack Overflow, and Trustpilot, just to name a few.
.NET remained in the top three technologies for businesses, according to the 2020 Statista report: .NET (35.1 %) and .NET Core (26.7 %) are at Node.js’ (51.4.%) heels. C#, one of the .NET main programming languages, is the 4th most popular language among developers, according to PYPL.
Source: inc.com
Are you wondering what makes .NET so popular? Let’s take a look.
.NET has been around for a while and includes lots of useful tools, so it’s easy to get confused by this abundance. Fortunately, we’ll do the heavy lifting for you and give a brief overview of the .NET developer platform, its history and components. If you are familiar with it, you might jump to the next section.
In the mid 90ths, Microsoft worked on a game-changing concept of managed code, inspired by the introduction of the Java language and ecosystem (and willing to kill Java on Windows). As a result of these efforts, the company released the C# programming language in 2000 and .NET Framework in 2002. The new platform allowed developers to promote code security and robustness and manage some routine tasks (e.g., check the code, detect errors, automatically allocate and release memory for the application) by running code in an environment called runtime in Microsoft terminology.
Code managed by a runtime differs from unmanaged code, and here is how.
Unmanaged code
Code executed by the operating system (OS) directly is unmanaged. It is compiled straight to machine code to run on the specific processor architecture. Thanks to direct access to the hardware, such code is fast and powerful. But at the same time, it can be damaging and crash the whole system in case of an error. Another drawback is that it’s not portable – if you want to run the same unmanaged code on a different architecture, you should recompile it according to that architecture.
Managed code
Managed code overcame the disadvantages of unmanaged code:
Let’s look in more detail at how managed code works in .NET.
.NET is a developer platform and ecosystem, NOT a programming language or library. As a platform, .NET consists of two main components:
As an ecosystem, .NET comprises high-level languages that can run on top of it (32 so far), such as C#, Visual Basic, F#, etc., and several variations of CLR that we’re going to discuss further below.
.NET is also part and parcel of all Microsoft products: technology, services, cloud, and cloud-to-edge solutions. So with the help of .NET, these products can be customized to fit the particular needs of small, medium-sized, or large enterprises.
The journey of a .NET application starts with the source code written by developers in one of the languages compatible with .NET (most often, it’s C#). The code is first compiled with a native compiler for the respective language. Then this code is compiled for a second time into language-agnostic Intermediate Language, or IL for short (also called Microsoft Intermediate Language (MSIL) or Common Intermediate Language (CIL)). The compiled code and code’s metadata that describes the classes, methods, and attributes (such as security requirements) are stored in files called assemblies.
After this, CLR comes into play. It takes the assemblies and performs Just-In-Time compiling, or JIT-ing of code from IL to machine code. Simply put, CLR compiles the code fragments that are about to be executed (hence the name “just-in-time“), and then they are cached and reused later without the need to be recompiled.
Source: dotnet.microsoft.com
For almost two decades that passed since its first release, the .NET platform has evolved and transformed itself to adapt to the times. The first implementation was .NET Framework, which is, in fact, not a framework but a runtime variation. It supports running websites, services, desktop apps, and more on Windows only.
As the cloud-first and mobile-first trends gained pace in the 2010s, Windows-only .NET Framework couldn’t meet those new demands. So in 2016, Microsoft released a brand new platform—.NET Core (called .NET 5 in the latest release), an open-source implementation for running websites, services, and console apps on Windows, Linux, and macOS.
To cover mobile app development, Microsoft acquired Xamarin at the end of 2016. This acquisition allowed .NET developers to create native or near-native mobile applications across major mobile platforms, including iOS, Android, and OS X.
Although every .NET implementation has its CLR and class libraries, they are still part of the .NET family, so code created for one runtime can also be executed by another runtime. It is possible thanks to the .NET Standard—a set of fundamental APIs (also referred to as base class library or BCL) that are common across .NET Framework, .NET Core, and Xamarin. Instead of having platform-specific dev teams, you can have one team that consolidates the code and adapts it to run on different platforms.
Source: devblogs.microsoft.com
The .NET platform is moving towards unification around .NET Core. At the same time, Microsoft is not abandoning .NET Framework altogether. Even though version 4.8 released in 2019 was announced to be the last major update of .NET Framework, the tech giant will ship it with Windows and keep servicing and supporting it. So chill out if you already have .NET Framework apps — they are safe for now.
Source: devblogs.microsoft.com
Now let’s see what application types and technologies .NET has to offer and what pitfalls you might expect when choosing them.
As we mentioned above, .NET Framework is used to develop applications for Windows, web apps, console apps, and Windows services. It contains a lot of technologies that may be puzzling at first. But don’t worry, our cheat sheet will help you figure them out.
Windows Forms (WinForms)—a graphical user interface (GUI) class library to create desktop applications ASP.NET—a framework for building web apps and services.
ADO.NET (where ADO stands for ActiveX Data Object)—a database access technology that allows consumer applications to retrieve, handle, and update the data from various data sources.
Windows Presentation Foundation (WPF)—a UI framework that creates desktop client applications for Windows using Extensible Application Markup Language (XAML).
Windows Communication Foundation (WCF) helps build service-oriented applications relying on web services to send and receive data.
WCF is closely connected with the Windows Workflow Foundation (WF), where a workflow models a process as a hierarchy of actions called activities.
Despite its rich toolset, .NET Framework is becoming outdated. The companies that have existing .NET Framework applications can maintain them, port them to .NET Core or enrich them with other .NET implementations (thanks to the Standard Library we mentioned earlier). There are some technologies that .NET Core does not support, but they are quite rare.
The majority of new applications are better off with .NET Core. It’s modular, stunningly lightweight, and fast. It makes your solution cloud-ready (meaning not only Azure but AWS, Google Cloud Platform (GCP), etc.), cross-platform, and container-friendly.
Currently, .NET Core is used to create:
Blazor is an example that illustrates how stunning .NET Core is. It is a super-cool framework within ASP.NET Core for building interactive client-side web UI using C# instead of JavaScript (JS), another popular language for creating web-page UI. You may wonder what makes it so cool? Well, there are several reasons:
Apart from the many advantages of .NET, there are some drawbacks worth mentioning:
Microsoft .NET is a software developer platform and ecosystem for building and running the front-end and back-end of desktop, web, and mobile applications for Linux, macOS, Windows, iOS, Android, and more.
The .NET developer platform includes three implementations/runtimes with frameworks and libraries for building applications: .NET Framework, .NET Core, and Xamarin/Mono. The .NET Standard Library, a set of API specifications, ensures that the same code can work on many runtimes.
Among all the implementations, .NET Core is an obvious choice for desktop, web, and mobile applications in the long run, especially for small and medium-sized enterprises (SMEs).
If you think that .NET is the way to go for your project, we’re here to help. Contact us and get an estimate of your project.
Our team would love to hear from you.
Fill out the form to receive a consultation and explore how we can assist you and your business.
What happens next?