[Gtk-sharp-list] -pkg:gtk-sharp insteadof -r:gtk-sharp

Juergen Moeller juergen.moeller@elektrobude.de
Thu, 27 May 2004 09:59:45 +0200


Hi,

I cannot compile a little gtk-HelloWorld-Application with option '-r'. 
However with '-pkg'. Why??? I remember I earlier did it with '-r'...

Code:
using Gtk;
using GtkSharp;
using System;

class Hello {
        static void Main()
        {
                Application.Init ();
                Window window = new Window ("helloworld");
                window.Show();
                Application.Run ();
        }
}

Compiling:
mcs -r:gtk-sharp helloworld.cs
results in 
error CS0006: Cannot find assembly `gtk-sharp'
Log:

Compilation failed: 1 error(s), 0 warnings

Compiling:
mcs -pkg:gtk-sharp helloworld.cs
works fine

gtk-sharp is in the gac. Compiling for example with System.Windows.Forms 
works with 'r'...


-Juergen