Laadi alla dotnet-install.sh installiskript vastavalt Microsoft’i juhendile. wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh või curl -L https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh
Tee skript käivitatavaks chmod +x dotnet-install.sh
Lisa .NET-i teed Bashi (~/.bashrc) globaalseks kasutamiseks export DOTNET_ROOT=$HOME/.dotnet export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
.bashrc näidis:
Bash
# /etc/skel/.bashrc## This file is sourced by all *interactive* bash shells on startup,# including some apparently interactive shells such as scp and rcp# that can't tolerate any output. So make sure this doesn't display# anything or bad things will happen !# Test for an interactive shell. There is no need to set anything# past this point for scp and rcp, and it's important to refrain from# outputting anything in those cases.if [[ $-!=*i* ]] ; then# Shell is non-interactive. Be done now!returnfi# Put your fun stuff here.export DOTNET_ROOT=$HOME/.dotnetexport PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
Tähtis! Projekti loomisel tuleb jälgida, kas see toetab Linux’it.