Get started with .NET on your preferred platform.
.NET is a free, cross-platform, open-source developer platform for building many types of applications. This guide will walk you through the installation process for Windows, macOS, and Linux.
The .NET SDK (Software Development Kit) includes the .NET runtime, the .NET CLI (Command Line Interface), and other tools needed to build and run .NET applications.
Installing .NET on Windows is straightforward. You can use the recommended installer or the command line.
If you have the Windows Package Manager (winget) installed, you can use the command line:
You can also install just the runtime if you only need to run .NET applications:
Open a new Command Prompt or PowerShell window and run the following command to check the installed SDK version:
You should see the version number of the SDK you installed (e.g., 8.0.100).
Install .NET on macOS using the official installer or Homebrew.
If you use Homebrew, you can install .NET with a simple command:
To install only the runtime:
Open a new Terminal window and run:
This should output the installed .NET SDK version.
.NET installation on Linux typically involves using package managers or downloading binaries.
For distributions like Ubuntu, Debian, Fedora, CentOS, and others, using the package manager is the preferred method.
Open your terminal and run:
The output should confirm the installed SDK version.
Once .NET is installed, you can start building your first application.
Explore the extensive documentation and tutorials available on the Microsoft Learn .NET site.