Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install dotnet
#!/usr/bin/env bash
# exit on error
set -o errexit
# Download
wget https://download.visualstudio.microsoft.com/download/pr/d3e46476-4494-41b7-a628-c517794c5a6a/6066215f6c0a18b070e8e6e8b715de0b/dotnet-sdk-6.0.402-linux-x64.tar.gz;
# Extract
mkdir -p $XDG_CACHE_HOME/dotnet && tar zxf dotnet-sdk-6.0.402-linux-x64.tar.gz -C $XDG_CACHE_HOME/dotnet;
# Set vars
export DOTNET_ROOT=$XDG_CACHE_HOME/dotnet;
export PATH=$PATH:$XDG_CACHE_HOME/dotnet;
# verify installation
# dotnet --version
# run commands to build static site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment