Raspbian/ARM 上的 .NET Core?

.NET Core on Raspbian/ARM?

我们知道 .NET Core 支持 Linux x64 和 x86、MacOS X、Windows...但是它可以在 Linux 中用于 Raspberry Pi 吗? (例如Raspbian)。

本教程介绍(德语)如何升级 .NET Core on Linux (Raspberry Pi). This is an automated English translation

根据讨论 here sample solution is working on Raspbian. Official instructions are here

就我个人而言,我正在使用 Ubuntu 服务器标准,如 this guide 中那样,但我想这不是你问题中提到的树莓派 linux。

.NET Core 2.1 支持 Raspberry Pi。

以下是如何在 Raspberry Pi 上安装 .NET Core 2.1:

$ sudo apt-get -y update
$ sudo apt-get -y install libunwind8 gettext
$ wget https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.1.300/dotnet-sdk-2.1.300-linux-arm.tar.gz
$ wget https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-linux-arm.tar.gz
$ sudo mkdir /opt/dotnet
$ sudo tar -xvf dotnet-sdk-2.1.300-linux-arm.tar.gz -C /opt/dotnet/
$ sudo tar -xvf aspnetcore-runtime-2.1.0-linux-arm.tar.gz -C /opt/dotnet/
$ sudo ln -s /opt/dotnet/dotnet /usr/local/bin
$ dotnet --info