Skip to content

Latest commit

 

History

History
95 lines (64 loc) · 3.24 KB

install.md

File metadata and controls

95 lines (64 loc) · 3.24 KB

.NET 9 installation instructions

Concise install instructions are provided in this document and may be augmented in release notes for a given update. Complete .NET installation instructions for Windows, macOS, and Linux are provided for supported releases in .NET documentation.

Operating system specific instructions:

Install the latest preview version of the 9.0.1xx SDK to the specified location

Windows:

./dotnet-install.ps1 -Channel 9.0.1xx -Quality preview -InstallDir C:\cli

macOS/Linux:

./dotnet-install.sh --channel 9.0.1xx --quality preview --install-dir ~/cli

Install the latest preview version of the 9.0.0 runtime to the specified location

Windows:

.\.dotnet\dotnet-install.ps1 -Channel 9.0 -Runtime dotnet -Quality preview -InstallDir c:\cli

macOs/Linux:

./dotnet-install.sh --runtime dotnet --channel 9.0 --quality preview --install-dir ~/cli

Distributions

The following distributions are available for all operating systems:

  • .NET SDK: includes tools for building and testing applications, and includes the runtime distributions that follow.
  • .NET Runtime: includes the .NET runtime and libraries, enabling running console applications.
  • ASP.NET Core Runtime: includes the .NET and ASP.NET Core runtimes, enabling running console, and web applications.

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

Downloads

Download links are provided for each of the distributions at:

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

What's installed?

You can determine what is installed on your machine (assuming .NET is installed) using the following approach, with dotnet --info.

C:\>dotnet --info
.NET SDK (reflecting any global.json):
Version:   9.0.100-preview.1.24101.2
 Commit:    0a5360315a

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  12.6
 OS Platform: Darwin
 RID:         osx.12-x64
 Base Path:   /usr/local/share/dotnet/x64/sdk/9.0.100-preview.1.24101.2/

Host:
  Version:      9.0.100-preview.2.24157.14
  Architecture: x64
  Commit:       550605cc93

.NET SDKs installed:
9.0.100-preview.1.24101.2 [/usr/local/share/dotnet/x64/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 9.0.0-preview.2.24128.4 [/usr/local/share/dotnet/x64/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 9.0.100-preview.2.24157.14 [/usr/local/share/dotnet/x64/shared/Microsoft.NETCore.App]

If you have the .NET SDK installed, you can also use dotnet --version as demonstrated in the following example:

C:\>dotnet --version
9.0.100-preview.2.24157.14