As the error tells you, use the following command to compile: mono -pkg:gtk-sharp -r:System.Drawing myCodeFileHere.cs
Or if you are using SharpDevelop/MonoDevelop you need to add the assemblies as References ( System.Drawing, gtk-dotnet, gtk-sharp, glib-sharp, gdk-sharp, pango-sharp, glade-sharp, etc. ) Stanislav Nedelchev wrote: > Hi to all > I have one very simple question. > What i must change to get it working errors are listed bellow > i;m using mono 1.1.8.3 under linux > But it is almost the same in windows > can anybody give me some advice is it there something speacial to do to > get it working with sharpdeveloper under windows > and using GTK# > > Thanks > I'm trying to compile one of the GTK example and i'm geting errors like this > > > test.cs(4) error CS0234: The type or namespace name `Drawing' could not > be found in namespace `System' > test.cs(15) error CS0246: Cannot find type 'DeleteEventArgs' > test.cs(1) error CS0246: The namespace `Gtk' can not be found (missing > assembly reference?) > Try using -pkg:gtk-sharp > test.cs(2) error CS0246: The namespace `GtkSharp' can not be found > (missing assembly reference?) > Try using -pkg:gtk-sharp > test.cs(4) error CS0234: The type or namespace name `Drawing' could not > be found in namespace `System' > test.cs(4) error CS0246: The namespace `System.Drawing' can not be found > (missing assembly reference?) > Try using -r:System.Drawing > Compilation failed: 6 error(s), 0 warning > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gtk-sharp-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
