All scripts are PowerShell
Download the dotnet-install.ps1 script
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile 'dotnet-install.ps1';./dotnet-install.ps1 -InstallDir '~/.dotnet' -Channel 6.0 -Runtime dotnet -Version latestor download and install from Microsoft
./dotnet-install.ps1 -InstallDir '~/.dotnet' -Channel 8.0 -Runtime dotnet -Version latestor download and install from Microsoft
mkdir ~/Downloads
cd ~/Downloads
Start-BitsTransfer `
-Source 'https://go.microsoft.com/fwlink/?linkid=2088517' `
-Destination ".\ndp48-devpack-enu.exe"
& ./ndp48-devpack-enu.exe /q /norestart /log ndp48-devpack-enu.log
# For non-silent install
# & ./ndp48-devpack-enu.exe ./dotnet-install.ps1 -InstallDir '~/.dotnet' -Channel 6.0./dotnet-install.ps1 -InstallDir '~/.dotnet' -Channel 8.0Test that you can run the dotnet CLI (command line interface)
dotnet --version
dotnet new console --helpList available runtimes:
dotnet --list-runtimes