[Mono-list] mcs error (getting there...) - why mono apps do not run on windows

Paolo Molaro lupus@ximian.com
Fri, 5 Apr 2002 19:36:27 +0200


On 04/05/02 Guenther Roith wrote:
> yes. the reason for this is:
> to work on win32/.net mono-apps must contain a reference to  _CorExeMain in
> mscoree.dll
> If this is not the case (like in my hello.exe) on double-clicking control is
> not given to .net --> exeption
> 
> if you don't belive me load a csc-compile binary in a (hex)editor: you will
> see "_CorExeMain mscoree.dll" somewhere. Then load the sma e compiled with
> mcs: It is missing that.
> 
> I'm very shure this is the problem. :-)

If you run PEVerify on a mono-produced binary you'll see that that is
not the only issue.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better