Open a terminal window, then:
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb sudo apt-get update sudo apt-get install apt-transport https sudo apt-get install dotnet-sdk-3.1The SDK allows you to build and run .net applications.
sudo apt-get install dotnet-runtime-3.1The runtime merely allows you to run .net applications.
sudo apt-get install aspnetcore-runtime-3.1Initially, I did the next commands through visual studio code, but it isn't necessary to use visual studio code to run them. Any terminal window will do.
dotnet new console dotnet build dotnet publishYou will want to edit code eventually.
sudo snap install --classic codeOr just edit files in sublime
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list sudo apt-get update sudo apt-get install sublime-text