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
| OS | Version |
|---|---|
| Windows | Windows 10 (1809) or later, Windows Server 2016 or later |
| macOS | macOS 10.15 (Catalina) or later |
| Linux | Ubuntu 18.04+, Debian 10+, Fedora 33+, Alpine 3.13+ |
Installation Steps
Windows
- Download the installer from the official .NET site.
- Run the
.exefile and follow the wizard. - Verify the installation:
dotnet --list-runtimes
macOS
- Install via Homebrew:
brew install --cask dotnet-runtime-7.0
- Or download the
.pkginstaller from the official site and run it. - Verify the installation:
dotnet --list-runtimes
Linux (Ubuntu/Debian)
- 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
- Install the runtime:
sudo apt-get update
sudo apt-get install -y dotnet-runtime-7.0
- 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].