13

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).

SuperJMN
  • 13,110
  • 16
  • 86
  • 185
  • 2
    I'm not sure that they support `ARM` yet, but you can always install mono that should be in Raspbian repository – Sergey Litvinov Jul 01 '16 at 13:39
  • Some relevant discussion here: http://forums.dotnetfoundation.org/t/can-we-use-net-core-on-arm-processors/1291 – Nate Barbettini Jul 01 '16 at 16:37
  • 3
    Possible duplicate of [Is it possible to run .NET Core on Raspberry PI?](http://stackoverflow.com/questions/26907857/is-it-possible-to-run-net-core-on-raspberry-pi) – Nate Barbettini Jul 01 '16 at 16:39
  • 2
    Found a relavant thread, http://raspberrypi.stackexchange.com/questions/41762/visual-studio-code-net-core-arm-support – Jackie Jul 04 '16 at 03:05
  • Considering that the core CLR unit test run for a month now.... I bet on Build 2017 conference ☺ – Thomas Jan 16 '17 at 23:05
  • [More recent discussion here](https://github.com/dotnet/coreclr/issues/9168). – Tagc Feb 02 '17 at 16:44

3 Answers3

2

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.

Tomas
  • 675
  • 8
  • 17
  • 2
    I can confirm that it runs on an RPi 3 rocking Ubuntu 16.04. Unfortunately not with enough performance to handle my ASP.NET Core app...but it does run. – Tagc Jul 17 '17 at 14:55
2

.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
1iveowl
  • 1,622
  • 1
  • 18
  • 31
0

This tutorial describes (in German) how to up .NET Core on Linux (Raspberry Pi). This is an automated English translation.

Dmitry Pavlov
  • 30,789
  • 8
  • 97
  • 121
  • About halfway down the translation abruptly stops and it continues only in German. – Tagc Jan 25 '17 at 14:35
  • Fortunately enough, using the Edge browser and its Translator Extension, the translation is all the way in English. – SuperJMN Jan 25 '17 at 21:48
  • I successfully followed the steps until I reached the "dnvm upgrade -u" command. It says it "Cannot find the command". Anyone? – SuperJMN Jan 25 '17 at 22:16
  • Maybe it is not installed. Check this http://stackoverflow.com/questions/33130092/dvnm-not-a-recognized-as-an-internal-or-external-command-operable-program-or-bat – Dmitry Pavlov Jan 26 '17 at 10:20
  • @DmitryPavlov Sure, but how do I install it in Raspbian for the RPi3? – SuperJMN Jan 28 '17 at 11:48
  • It seems to be not possible for RPi3 yet - http://stackoverflow.com/questions/40013926/net-core-installation-on-windows-10-iot-raspberry-pi3-arm Or maybe I am wrong and it is possible http://stackoverflow.com/questions/39560892/is-net-core-ready-to-run-on-raspberry-pi-3 Feel free to look the related threads and follow the instructions. Or maybe even try to be a pioneer and be the first who made something working. – Dmitry Pavlov Jan 28 '17 at 14:58