A free, open-source developer platform for building cross-platform applications.
.NET, created and supported by Microsoft, provides a runtime, libraries, tools, and languages for creating software that runs on Windows, Linux, macOS, iOS, and Android. It supports multiple programming languages, with C# being the most widely used. The platform is designed for performance, security, and reliability, offering features like garbage collection, type safety, and asynchronous programming.
The .NET ecosystem includes standard libraries and frameworks for web, desktop, mobile, cloud, gaming, machine learning, and IoT development. Developers can extend functionality with NuGet, a package manager that hosts hundreds of thousands of reusable components. Visual Studio, Visual Studio Code, and the .NET CLI are commonly used tools for writing, testing, and deploying .NET applications.
Different implementations of .NET exist:
Here’s how a simple program looks in .NET using C#:
using System;
class Program
{
static void Main()
{
Console.WriteLine("Hello, World!");
}
}
To run this:
Install the .NET SDK.
Create a new console app with:
dotnet new console -n HelloWorld
cd HelloWorld
dotnet run
You’ll see Hello, World! printed to your terminal.