Hi everyone, I seem to have a problem with my build environment that I have been trying to fix for the past several days to no avail. Basically, when I build my project with one set of names for the executable and libraries, it works fine, but with another set of names it fails:
[EMAIL PROTECTED] test]$ mcs -target:library -out:Foo.dll Foo.cs ïCompilation succeeded [EMAIL PROTECTED] test]$ mcs -r:Modality.dll -out:Bar.exe Bar.cs ïCompilation succeeded [EMAIL PROTECTED] test]$ mono Bar.exe ïOK! [EMAIL PROTECTED] test]$ mcs -target:library -out:Modality.dll Foo.cs ïCompilation succeeded [EMAIL PROTECTED] test]$ mcs -r:Modality.dll -out:Modality.exe Bar.cs ïCompilation succeeded [EMAIL PROTECTED] test]$ mono Modality.exe ** (Modality.exe:24179): WARNING **: Could not load class from token 0x01000002 in /home/erik/tmp/test/Modality.exe ** (Modality.exe:24179): WARNING **: Missing method .ctor in assembly /home/erik/tmp/test/Modality.exe typeref index 2 Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required. in (unmanaged) Bar:Main (string[]) For some reason the problem only appears when I use those two names (Modality.dll and Modality.exe). I even tried doing a clean reinstall (since I was upgrading to Fedora Core 2 anyway) and trying it again, and I still have the same problem. I'm at a total loss, can anyone help? -Erik P.S. Here are the contents of the two source files in question: Foo.cs: public class Foo { } Bar.cs: using System; public class Bar { public static void Main(string[] args) { Foo f = new Foo(); Console.WriteLine("OK!"); } } _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list