~/handys11

Tips

Utilities and tweaks I reuse.

.NET

Get the dotnet-install script

Download the official .NET install script and make it executable.

bash
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
# or: curl -fsSL https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh
chmod +x dotnet-install.sh

Install .NET with the script

Install an SDK or runtime into ~/.dotnet, then put dotnet on your PATH.

bash
./dotnet-install.sh --channel LTS        # latest LTS SDK
./dotnet-install.sh --channel 9.0        # specific SDK channel
./dotnet-install.sh --runtime aspnetcore # ASP.NET Core runtime only

# add to ~/.bashrc so dotnet is on PATH
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools