Skip to content

Instantly share code, notes, and snippets.

@BigAlRender
Last active October 21, 2022 10:19
Show Gist options
  • Save BigAlRender/5f46d59eb5ecfa315edb132c9e9b15f8 to your computer and use it in GitHub Desktop.
Save BigAlRender/5f46d59eb5ecfa315edb132c9e9b15f8 to your computer and use it in GitHub Desktop.
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