0.更新源
sudo apt-get update
1.安装依赖
sudo apt-get install curl libunwind8 gettext
2.下载 SDK 或者 RunTime
https://www.microsoft.com/net/download/linux
curl -sSL -o dotnet.tar.gz https://download.microsoft.com/download/1/f/7/1f7755c5-934d-4638-b89f-1f4ffa5afe89/dotnet-runtime-2.1.2-linux-arm.tar.gz
3.提取内容
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
4.设置可以执行 dotnet
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
5.测试安装
dotnet --help
参考
https://blogs.msdn.microsoft.com/david/2017/07/20/setting_up_raspian_and_dotnet_core_2_0_on_a_raspberry_pi/
https://docs.microsoft.com/zh-cn/dotnet/core/
https://www.cnblogs.com/songxingzhu/p/7399991.html
https://github.com/dotnet/core
来源:https://www.cnblogs.com/magicbowie/p/9320737.html