[Mono-list] namespace

Jonathan Pryor jonpryor at vt.edu
Wed Feb 15 18:11:50 EST 2006


On Wed, 2006-02-15 at 16:12 +0100, Tomas Olofsson wrote:
> Trying to create a Gtk.FileChooserDialog but when I compile the following 
> error occur:
> 
> "error CS0234: The type or namespace name `FileChooserDialog' does not 
> exist in the namespace `Gtk'. Are you missing an assembly reference?"

You need to have Gtk# 2.4 or later installed, and you need to pass
`-pkg:gtk-sharp-2.0` on the mcs compile line, e.g.

	mcs -pkg:gtk-sharp-2.0 MyProgram.cs

Otherwise, mcs won't reference the appropriate assemblies to know about
the Gtk.FileChooserDialog type.

 - Jon




More information about the Mono-list mailing list