[Mono-list] Microsoft's compiler with mono's corlib! - Issues!
28 Dec 2002 14:41:27 -0000
Tried to compile and run a helloworld written in C# using the MS
compiler but mono's corlib.
Did the following,
1. Cleared all the path setting on my Win2K workstation
2. Copied the files csc.exe, cscomp.dll, cscompui.dll to the
directory containing my hello.cs file
3.Copied the corlib.dll from my mono/mcs build to the same
3. Ran the following at command prompt
csc /nostdlib /noconfig /r:corlib.dll hello.cs
Compilation succeeded, but on execution of hello.exe the following
Unhandled Exception: System.TypeLoadException: Could not load type
System.Object from assembly corlib, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null because the parent does not
Now tried the following
1. Renamed the mscorlib.dll in my
This time on executing hello.exe the following error doalog
The program will terminate now
Any clues as to why this is happening?
Is there anything specific i need to take care of if i want to use
mono's corlib with MS's compiler?