Step 1 – Enable Microsoft PPA
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
Step 2 – Installing Dotnet Core SDK
sudo apt update
sudo apt install apt-transport-https
sudo apt install dotnet-sdk-3.1
Step 3 – Install Dotnet Core Runtime Only
sudo apt update
sudo apt install apt-transport-https
sudo apt install dotnet-runtime-3.1
Step 4 – Create Sample Application
dotnet new console -o HelloWorld
cd HelloWorld
dotnet run