Download the dotnet-install.sh
script
curl -sSL https://dot.net/v1/dotnet-install.sh > dotnet-install.sh
chmod +x dotnet-install.sh
./dotnet-install.sh --runtime dotnet --channel 6.0 --version latest
or download and install from Microsoft
./dotnet-install.sh --runtime dotnet --channel 8.0 --version latest
or download and install from Microsoft
This is needed by the Visual Studio Code C# extension. Install with dotnet-install.sh
script:
./dotnet-install.sh --channel 6.0
Install with dotnet-install.sh
script:
./dotnet-install.sh --channel 8.0
Test that you can run the dotnet
CLI (command line interface)
~/.dotnet/dotnet --version
~/.dotnet/dotnet new console --help