We know .NET Core supports Linux x64 and x86, MacOS X, Windows... but is it ready to use in Linux for Raspberry Pi? (Raspbian, for example).
NET Core on Raspberry Pi. . NET Core SDK is available on ARM32/ARM64 which is used by Raspberry Pi but many users have reported it's more convenient to cross build (i.e. dotnet publish -r linux-arm ) binaries from desktop as it allows for much faster iteration cycle.
The . NET Framework already runs on ARM processors, but it's not the exact same . NET Framework as the version that runs on the desktop.
ASP.NET Core is a cross-platform web development framework that supports developing applications on Windows, Mac, Linux, iOS, and Android platforms. Hosting an ASP.NET Core application in Linux is complicated when compared to hosting one in Windows.
NET works well on their Linux distributions. Support is provided by those distributions. You can still open issues at dotnet/core if you run into problems.
.NET Core 2.1 supports Raspberry Pi.
Here is how to install .NET Core 2.1 on Raspberry Pi:
$ 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
According to discussion here sample solution is working on Raspbian. Official instructions are here.
Personally I'm using Ubuntu Server Standard as in this guide but I suppose that is not linux for raspberry as mentioned in your question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With