run below command
wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
then edit it
vi build-tools.sh
go to insert mode and add following commands
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.0
sudo apt-get update
sudo apt-get install dotnet-runtime-3.0
save the file : Press Esc then :wq + Enter
Then run below commands
chmod u+x build-tools.sh
sudo ./build-tools.sh