I've seen a lot of talk about running Mono/.NET code on the Raspberry Pi. Has there been any success in actually running any Mono code on a Raspberry Pi?
On their site, they list several Linux distributions that work on the device and some of these distributions include Mono. However, none detail whether Mono works on it.
Is there a working implementation?
The process of installing Mono to the Raspberry Pi is straightforward thanks to it being available as a part of the official Raspberry Pi OS package repository. If you are using a desktop version of Raspberry Pi OS, you will need to be using the terminal.
Mono is an open-source framework that allows users to write cross platform applications based on . Net. For Raspberry Pi users, things become easy once you install Mono on your device as this will open up the opportunity for you to create the . Net applications on Raspberry Pi.
Raspberry Pi can handle 24/7 run time. They are designed to be run for long periods of time without any failures occurring. There is, however, a catch. If you'd like to leave your Raspberry Pi on all the time without damaging it, it needs to be used with a proper linear power supply.
I have managed to run my Delta Forth .NET compiler on Debian 6.0 (Squeeze) and Mono. It worked flawlessly with full binary compatibility, the only thing I had to do was to recompile the code to target .NET 3.5 (instead of 4.0) since Mono on Debian lags a bit regarding .NET versions.
The compiler is not a trivial .NET application so I was happy to actually see the compiler in action on my tiny Raspberry Pi.
The actual steps I took to make the magic happen were (I recall from memory):
That is all. The most challenging part of this endeavor was to transfer the files from my Windows machine to Raspberry Pi using a flash drive :-)
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