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 directory
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 happened
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 exist.

Now tried the following
1. Renamed the mscorlib.dll in my c:\WINNT\Microsoft.NET\Framework\v1.0.3705 folder

This time on executing hello.exe the following error doalog appeares
CLR Error:80070002
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?

Thanks
bvv


_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to