Install .NET 5 Runtime/SDK on Pop!_OS or Ubuntu | Complete Guide
Trying to compile some .NET 5 code, or run a .NET 5 program, but can't find how to install .NET 5 Runtime or SDK? Well, don't worry. It's relatively simple, especially with Microsoft's use of Snap. This guide shows you all you need to know about setting the environment up on your Linux machine and using it!
What is Snap: https://docs.microsoft.com/en-us/dotnet/core/install/linux-snap
DotNet Snap Package: https://snapcraft.io/dotnet-sdk
Install Steps: https://docs.microsoft.com/en-us/dotnet/core/install/linux-snap#install-the-sdk
Commands:
- sudo apt update
- sudo apt install snapd
EITHER (SDK):
- sudo snap install dotnet-sdk --classic --channel=5.0
- sudo ln -s /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet
OR (RUNTIME):
- sudo snap install dotnet-runtime-50 --classic
- sudo ln -s /snap/dotnet-runtime-50/current/dotnet /usr/local/bin/dotnet
xdg-open ~/.bashrc
export DOTNET_ROOT=/usr/local/bin/dotnet
Related videos:
- Install Pop!_OS on Hyper-V: https://youtu.be/5JvUmBu3y84
- Enable Enhanced Session in Hyper-V: https://youtu.be/mveyMZrIOzc
- Install .NET 5 Runtime/SDK: https://youtu.be/g0vuTh0Dao8
- Mount Windows Shared Folder: https://youtu.be/0B8lPKRe0x0
Related videos:
- How to mount a Windows network share on Linux:
Timestamps:
0:00 - Explanation
0:26 - What is Snap
0:43 - Install Snap on Pop!_OS/Ubuntu
1:33 - .NET 5 packages on Snap
2:15 - Install .NET 5 with Snap on Pop!_OS/Ubuntu
3:08 - Integrate .NET 5 in Pop!_OS/Ubuntu
4:00 - Add .NET 5 to PATH
5:00 - Testing a .NET 5 app on Pop!_OS/Ubuntu
#PopOS #HyperV #Guide
-----------------------------
πΈ Found this useful? Help me make more! Support me by becoming a member: https://youtube.com/channel/UCkih2oVTbXPEpVwE-U7kmHw/join
-----------------------------
πΈ Direct donations via Ko-Fi: https://ko-fi.com/TCNOco
π¬ Discuss video & Suggest (Discord): https://s.tcno.co/Discord
π Game guides & Simple tips: https://YouTube.com/TroubleChuteBasics
π Website: https://tcno.co
π§ Need voice overs done? Business query? Contact my business email: TroubleChute (at) tcno.co
Everything in this video is my personal opinion and experience, and should not be considered professional advice. Always do your own research and make sure what you're doing is safe.