You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create package for Raspberry Pi OS (ARM64 and ARM32) #3263
While there is a working binary download for dotnet (.NET Core) for ARM32 that works on a Raspberry Pi B 3+ with a current Raspbian OS, there are no instructions how to install it. And there are no packages for the OS, too. So it's a bit of a mystery how to actually make .NET Core work on a Raspi.
I think there should be a package for that OS. It should be as simple as that:
sudo apt install dotnet
Maybe a custom package source needs to be added, but definitely no manual tar file works. Mono was easier to install when it was current like 5 years ago.
Since the docker support on the Raspi with dotnet-runtime packages is very poor (multi-arch fails, need to select arm32 image specifically, can't get my app in a custom image), I need to install .NET Core on the Raspi OS itself.
Dave wrote an article a year ago on where to download and how to install dotnet 2.0.0
I can confirm it still works on the latest Raspbian release.
That article seems to be the only way to install dotnet and it's just directly downloading the binaries, move them to /opt/, and create symbolic link to /usr/local/bin
RaspberryPiInstructions.md links to the official MS download for dotnet, and the instructions for Debian 9 do not work for Raspbian.
why not just publish the app on a supported architecture and target arm-32, so every .so file required get´s copied to the publish folder even the CLR and you don´t need to install anything on the Rasbian, just copy over your application.
Ah, we were looking at this in a triage meeting and I guess we overlooked that. IIRC they are pretty much the same from the packaging + release perspective, so they'll be done at the same time, but if we really want to close one we should make sure that's reflected.
The runtime works fine on Raspbian (or better: worked fine) up until .NET Core 5.0 preview 4. Later versions seem to have problems starting the CLR for some users (i.e me). See dotnet/iot#1099.
That said: I'm trying to investigate what's wrong, but I'm a bit lost with instructions on how to build for Arm32.
@pgrawehr i was trying to run a project built on windows on the pi. But couldn't get it to work. The project uses gtksharp for a gui front-end. Unfortunately xamarin.forms doesn't support the pi.
@Jakar510 Can you be a bit more precise on what didn't work? What have you tried and what error did you get? I haven't used gtksharp, so I don't know about that, but in general, .NET applications do run on the pi.
I got tired of waiting, so I made my own public APT package repository of armhf and arm64 .NET DEB packages for Raspberry Pi OS. These packages use the official Linux binaries built by Microsoft, and are automatically updated when new .NET versions are released.
If you like, you can install these packages on your Raspberry Pis too by following these instructions.
(copied from related issue because GitHub didn't link my comment here)
Activity
GabrielJadderson commentedon Aug 2, 2018
Dave wrote an article a year ago on where to download and how to install dotnet 2.0.0
I can confirm it still works on the latest Raspbian release.
That article seems to be the only way to install dotnet and it's just directly downloading the binaries, move them to /opt/, and create symbolic link to /usr/local/bin
RaspberryPiInstructions.md links to the official MS download for dotnet, and the instructions for Debian 9 do not work for Raspbian.
Spacefish commentedon Aug 7, 2018
why not just publish the app on a supported architecture and target arm-32, so every .so file required get´s copied to the publish folder even the CLR and you don´t need to install anything on the Rasbian, just copy over your application.
ygoe commentedon Aug 8, 2018
@Spacefish You could do that. That makes 70 MB for the simplest of an app.
sdmaclea commentedon Sep 14, 2018
@jeffschwMSFT I did the equivalent arm64 work for this. Do you want me to assign myself dotnet/cli#8998 ?
jeffschwMSFT commentedon Sep 14, 2018
Sounds good, thanks @sdmaclea
dagood commentedon Nov 20, 2019
Duplicate of https://github.com/dotnet/core-setup/issues/4560
ygoe commentedon Nov 22, 2019
@dagood Ehm, the other issue is about ARM64, right? This issue is about Raspbian OS and ARM32. I can't see how that's a duplicate.
dagood commentedon Nov 22, 2019
Ah, we were looking at this in a triage meeting and I guess we overlooked that. IIRC they are pretty much the same from the packaging + release perspective, so they'll be done at the same time, but if we really want to close one we should make sure that's reflected.
Reopening, @leecow PTAL.
2 remaining items
NikolaMilosavljevic commentedon Aug 5, 2020
We need to officially support Raspberry Pi OS before creating packages.
NikolaMilosavljevic commentedon Aug 5, 2020
We should consider supporting arm64 as well: https://www.raspberrypi.org/forums/viewtopic.php?p=1668160
[-]Create package for Raspbian OS (ARM32)[/-][+]Create package for Raspberry Pi OS (ARM64 and ARM32)[/+]Jakar510 commentedon Aug 20, 2020
+1 Really want it to work on Raspberry Pi 4 (or later)
pgrawehr commentedon Aug 22, 2020
The runtime works fine on Raspbian (or better: worked fine) up until .NET Core 5.0 preview 4. Later versions seem to have problems starting the CLR for some users (i.e me). See dotnet/iot#1099.
That said: I'm trying to investigate what's wrong, but I'm a bit lost with instructions on how to build for Arm32.
Jakar510 commentedon Aug 23, 2020
@pgrawehr i was trying to run a project built on windows on the pi. But couldn't get it to work. The project uses gtksharp for a gui front-end. Unfortunately xamarin.forms doesn't support the pi.
Suggestions?
pgrawehr commentedon Aug 23, 2020
@Jakar510 Can you be a bit more precise on what didn't work? What have you tried and what error did you get? I haven't used gtksharp, so I don't know about that, but in general, .NET applications do run on the pi.
Aldaviva commentedon Mar 28, 2024
I got tired of waiting, so I made my own public APT package repository of armhf and arm64 .NET DEB packages for Raspberry Pi OS. These packages use the official Linux binaries built by Microsoft, and are automatically updated when new .NET versions are released.
If you like, you can install these packages on your Raspberry Pis too by following these instructions.
(copied from related issue because GitHub didn't link my comment here)
pedroveiga99 commentedon Sep 5, 2024
Is there any updates on this? @Petermarcu