Raspberry PI – Developing with Mono (c#, vb.net +others)

So you want to start developing some applications for your Raspberry PI but your knowledge of programming is limited to the modern .net languages such as vb .net and c#. Not a problem!!

Welcome to the world of mono, an open-source cross-platform and compatible version of the .net framework. By using a development IDE such as Visual studio or even better Mono Develop you can produce exes that will run on your Raspberry Pi. All you need to do is to install the mono run times on the Raspberry Pi. To do that we enter the following lines

sudo apt-get update
sudo apt-get install mono-runtime

As mentioned in other tutorials the first line is used to update the APT-GET package manager to ensure it is using the latest sources for downloading your packages. The second line installs and prepares the runtimes for use. That is it, now to run a mono developed exe just simply prefix the command with the word mono as shown below.

mono myprogram.exe

The exes can be loaded onto the raspberry pi from USB, FTP or any other form of media, it really is that simple.

Photo of a chip on the main board of the ZX Spectrum 48k Next post Emulation – Building a Z80 Emulator Part 1