: [Mono-list] Windows.Forms not found
Hello!
The compilation of the code below fails, apparently because
Windows.Forms cannot be found on the system. I do have
Windows.Forms.dll. I am using Ubuntu Feisty Fawn and I installed mono
from ubuntu packages.
Any advice is appreciated.
Mladen
out of
ideas :)
-Original Message-
From: Mladen Bestvina [mailto:[EMAIL PROTECTED]
Sent: Friday, July 06, 2007 11:16 AM
To: Maser, Dan
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Windows.Forms not found
Thanks Dan. I tried this, but I get:
[EMAIL PROTECTED]:~/mono
Hello!
The compilation of the code below fails, apparently because
Windows.Forms cannot be found on the system. I do have
Windows.Forms.dll. I am using Ubuntu Feisty Fawn and I installed mono
from ubuntu packages.
Any advice is appreciated.
Mladen
=
[EMAIL
PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] Windows.Forms not found
Hello!
The compilation of the code below fails, apparently because
Windows.Forms cannot be found on the system. I do have
Windows.Forms.dll. I am using Ubuntu Feisty Fawn and I installed mono
from ubuntu packages
To: Maser, Dan
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Windows.Forms not found
Thanks Dan. I tried this, but I get:
[EMAIL PROTECTED]:~/mono$ mcs -r:System.Drawing -r:System.Windows.Forms
sample.cs
error CS0006: cannot find metadata file `System.Windows.Forms'
Compilation failed: 1
next guess is that your lib path doesn't
include the place where your mono dlls are.
-Original Message-
From: Mladen Bestvina [mailto:[EMAIL PROTECTED]
Sent: Friday, July 06, 2007 12:08 PM
To: Maser, Dan
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Windows.Forms not found
You need to add the reference to System.Windows.Forms just
like you did System.Drawing. Such as mcs -r:System.Drawing
-r:System.Windows.Forms sample.cs
Or instead just use -pkg:dotnet. See e.g.
http://www.mono-project.com/WinForms_Getting_Started_Guide
Andy