[MonoDevelop] Namespaces in Mono

Oskar Berggren oskar.berggren at gmail.com
Wed Mar 16 07:55:12 EDT 2011


You need to reference the assembly containing that code. Right click
on "References" in the solution pad.

/Oskar


2011/3/16 Sayth Renshaw <flebber.crue at gmail.com>:
> I am just starting using mono and have version 2.4 installed.
>
> Can I have some help regarding namespaces. I started with just a very basic
> Hello World to kick things off.
>
> The build failed though as the namespace System.Windows.Forms; could not be
> found. After a litle searching I found http://www.mono-project.com/Winforms
> and the geting started guide
> http://www.mono-project.com/WinForms_Getting_Started_Guide in the example
> they use
>
> using System;
> using System.Drawing;
> using System.Windows.Forms;
>
>
> So I implemented that but still both Drawing and Forms error when building
> that the type or namespace does not exist. What am I doing wrong.
>
> using System;
>
> using System.Drawing;
>
> using System.Windows.Forms;
>
>
>
> namespace BasicHello
>
> {
>
>     public class Program
>
>     {
>
>         public static void Main()
>
>         {
>
>             MessageBox.Show("Hello World!");
>
>         }
>
>     }
>
> }
>
> Sayth
>
>
>
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>


More information about the Monodevelop-list mailing list