dotnet sdk安装以及环境变量设置 Ubuntu 18.04 LTS
wget dotnet-sdk-3.0.100-preview8-013656-linux-x64.tar.gz
mkdir -p /var/lib/dotnet && tar zxf dotnet-sdk-3.0.100-preview8-013656-linux-x64.tar.gz -C /var/lib/dotnet
vim /etc/profile
export DOTNET_ROOT=/var/lib/dotnet
export PATH=$PATH:/var/lib/dotnet
最后执行
source /etc/profile
https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-current