-
Notifications
You must be signed in to change notification settings - Fork 0
Install .net on ubuntu
phaledang edited this page Jan 25, 2024
·
8 revisions
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --version latest --runtime aspnetcore
The script defaults to installing the latest long term support (LTS) SDK version, which is .NET 8. To install the latest release, which might not be an (LTS) version, use the --version latest parameter.
./dotnet-install.sh --version latest
./dotnet-install.sh --version latest --runtime aspnetcore
You can install a specific major version with the --channel parameter to indicate the specific version. The following command installs .NET 8.0 SDK.
./dotnet-install.sh --channel 8.0
sudo snap install dotnet-sdk
-
For more information, see dotnet-install scripts reference.
-
To enable .NET on the command line, see Set environment variables system-wide.