core

.NET 8 installation instructions for Windows

The following instructions demonstrate installing .NET 8 on Windows. These instructions augment the more general .NET install instructions, including installing with .zip files, that work on multiple operating systems.

Distributions

The following distributions are available for Windows:

We recommend you install the .NET SDK to develop and build applications, and to install one of the runtimes packages (like ASP.NET Core) to exclusively run applications.

Downloads

Each of the distributions can be downloaded from:

Container images are provided for Windows (Nano Server and Server Core) and Linux (Alpine, Debian, and Ubuntu).

Windows Package Manager CLI (winget)

You can now install .NET updates using the Windows Package Manager CLI (winget):

See Install with Windows Package Manager (winget) for more information.

Install using MSI

You can install any of the distributions with MSI. The following image demonstrates installing the .NET SDK. After launching the MSI, click “Install” and you will be taken through the process of installing the SDK.

image

Windows Server Hosting with IIS

You should install the Hosting Bundle MSI if you want to enable hosting ASP.NET Core with IIS.

Installing from a binary archive

You can install .NET with a binary archive. This option is required if you want to install .NET for a single user. It is also recommended if you want to install .NET temporarily.

The following workflow demonstrates downloading, unpacking, configuring, and running the .NET SDK from the command line. You may choose to do some of these tasks via the browser and functionality provided by your operating system.

C:\>curl -Lo dotnet.zip  https://download.visualstudio.microsoft.com/download/pr/1b55b379-5ef2-4f21-8fad-aba058913cbc/c26ee3ba55cb40407a79564e28ed6d98/dotnet-sdk-8.0.100-preview.4.23260.5-win-x64.exe
C:\>tar -C dotnet -xf dotnet.zip
C:\>del dotnet.zip
C:\>set DOTNET_ROOT=C:\dotnet
C:\>set PATH=%PATH%;C:\dotnet
C:\>dotnet --version
8.0.100-preview.4.23260.5

The DOTNET_ROOT environment variable is required to launch an application with their executables (like myapp.exe). The executables look for this environment variable to find the runtime if it isn’t installed in its regular location. The PATH environment variable must be updated if you want to use dotnet without absolute paths to its location. Setting both of these environment variables is optional.

You can add your .NET install location permanently to your path if you’d like.