install .net sdk on ubuntu 1

install .net sdk on ubuntu

# with Snap
sudo snap install dotnet-sdk --classic --channel=5.0

#with apt
wget -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install -y apt-transport-https
 sudo apt-get install -y dotnet-sdk-5.0

Here is what the above code is Doing:
1. Download the Microsoft repository GPG keys
2. Register the Microsoft Product feed
3. Install required dependencies
4. Install .NET 5 SDK

Similar Posts