Excerpt from: http://www.phodal.com/blog/user-csharp-develop-raspberry-pi-application/
Raspberry Pi C#mono Linux
Mono is a free open source project hosted by Xamarin Corporation (formerly Novell, First Ximian). The goal of the project is to create a series of. NET tools that conform to the ECMA standard (Ecma-334 and Ecma-335), including the C # compiler and the common language architecture.
Other
The mono virtual machine contains a real-time compilation engine that can be used with the following handlers: x86,sparc,powerpc,arm,s390 (32-bit mode and 64-bit mode), x86-64,ia-64 and 64-bit mode SPARC. The virtual machine can compile the code into native code.
Raspberry PI Installation Mono
Installation is still very simple, provided that the Raspbian is used
updatesudo apt-get upgradesudo apt-get install mono-complete
Installing Mono-complete may make our future work easier, but it's a bit big.
After the installation is complete we can execute
csharp
Try whether the installation was successful.
Raspberry Pi Hello,world
So we create a HelloWorld.csthat contains:
using System;public class HelloWorld{ public static void Main() { Console.WriteLine("Hello World!"); }}
Raspberry Pi compiling C # file
GCMs is a compile command for mono and can be used on each platform. and the compiled. exe file can run on various platforms ...
gmcs HelloWorld.cs
Raspberry PI executes C # EXE file
Here we can happily use the Mono command, execute
mono HelloWorld.exe
And then we go back.
Hello,World
Raspberry Pi in the installation mono