.NET Documentation

Install the .NET Runtime

The .NET Runtime provides the resources needed to run .NET applications on your machine. Follow the steps below to install the latest version on your operating system.

Supported Platforms

OSVersion
WindowsWindows 10 (1809) or later, Windows Server 2016 or later
macOSmacOS 10.15 (Catalina) or later
LinuxUbuntu 18.04+, Debian 10+, Fedora 33+, Alpine 3.13+

Installation Steps

Windows

  1. Download the installer from the official .NET site.
  2. Run the .exe file and follow the wizard.
  3. Verify the installation:
dotnet --list-runtimes

macOS

  1. Install via Homebrew:
brew install --cask dotnet-runtime-7.0
  1. Or download the .pkg installer from the official site and run it.
  2. Verify the installation:
dotnet --list-runtimes

Linux (Ubuntu/Debian)

  1. Add the Microsoft package repository:
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
  1. Install the runtime:
sudo apt-get update
sudo apt-get install -y dotnet-runtime-7.0
  1. Verify the installation:
dotnet --list-runtimes

Verify the Installation

Run the following command in a terminal or command prompt to list installed runtimes:

dotnet --list-runtimes

You should see an entry similar to Microsoft.NETCore.App 7.0.x [PATH].

Next Steps