樹莓派安裝.net core 2.1
阿新 • • 發佈:2018-07-17
http nbsp 內容 oca mkdir -p 安裝 參考 tro tps
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
樹莓派安裝.net core 2.1