C#, Mono i Windows Mobile

Ahir vaig estar provant el tema del desenvolupament de software amb C# i Mono per correr sobre Windows Mobile. Aquí les peripècies:
Primer de tot s’ha de crear el Hola Mundo(hello.cs):

using System;
using System.Drawing;
using System.Windows.Forms;
class MyForm : Form {
    Label Label1;
    public MyForm() {
        Label1 = new Label();
        Label1.Text = “Hello World”;
        Label1.Location = new Point(30,30);
        this.Text = “Hello World”;
        this.Controls.Add(Label1);
        }
    public static void Main() [...]

June 11th, 2008 by albert