Watch the video:
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
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
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: Go to post or View on YouTube
- Enable Enhanced Session in Hyper-V: Go to post or View on YouTube
- Install .NET 5 Runtime/SDK: Go to post or View on YouTube
- Mount Windows Shared Folder: Go to post or View on YouTube
Related videos:
- How to mount a Windows network share on Linux: