Setup .NET development environment on Ubuntu
Setup for Ubuntu
Download the dotnet-install.sh
script
cd
curl -sSL https://dot.net/v1/dotnet-install.sh > dotnet-install.sh
chmod +x dotnet-install.sh
.NET Runtime
.NET Runtime 6.0 (LTS)
./dotnet-install.sh --runtime dotnet --channel 6.0 --version latest
.NET Runtime 7.0
./dotnet-install.sh --runtime dotnet --channel 7.0 --version latest
.NET Runtime 8.0 (LTS)
./dotnet-install.sh --runtime dotnet --channel 8.0 --version latest
.NET SDK
.NET SDK 6.0
This is needed by the Visual Studio Code C# extension. Install with dotnet-install.sh
script:
./dotnet-install.sh --channel 6.0
.NET SDK 7.0
This is needed by the Visual Studio Code C# extension. Install with dotnet-install.sh
script:
./dotnet-install.sh --channel 7.0
.NET SDK 8.0
Install with dotnet-install.sh
script:
./dotnet-install.sh --channel 8.0
Test
Test that you can run the dotnet
CLI (command line interface)
~/.dotnet/dotnet --version
~/.dotnet/dotnet new console --help