[Mono-list] namespace System.Windows.Forms cannot be found
Jordi Mas
jordi@ximian.com
Wed, 13 Apr 2005 13:05:24 +0200
El dc 13 de 04 del 2005 a les 11:37 +0200, en/na Danny Brugman va
escriure:
> Hi,
>
> This might be a real beginners-question, but I couldn't
> find an answer anywhere on the internet, nor in the
> gnome documentation / Windows Forms home page.
>
> Issue is that I try to compile a very simple hello-world
> winforms application (Linux, Fedora FC3). I installed
> mono 1.1.6 + winforms rpm + all required dependencies
> (libgdiplus, cairo, etc), and I see a System.Windows.Forms
> directory in '/usr/lib/mono/gac/'.
>
> After invoking mcs I get the following error:
>
> hello.cs(2) error CS0234: The type or namespace name `Windows' could not
> be found innamespace `System'
Try
mcs programa.cs -r:System.Windows.Forms -r:System.Drawing
Leave the System.Drawing reference, you may also need it.
Jordi,
--
Jordi Mas i Hernāndez - Mono development team - http://www.mono-project.com
Homepage and LiveJournal at http://www.softcatala.org/~jmas