Raspberry Pi in the installation mono

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.