[Mono-devel-list] Call one Exe From another

Dick Porter dick at ximian.com
Thu Jan 27 14:37:08 EST 2005

On Thu, 2005-01-27 at 13:07 -0500, Jonathan Gilbert wrote:
> Perhaps it would be an idea to have mono check the 'FileName' argument to
> see if it is a .NET executable; if it is, and the current executable is
> (obviously) running under mono, it makes sense that the user probably wants
> the other executable to also run under mono.

That's an interesting idea - please file a wishlist bug so it doesn't
get forgotten.  I know that linux users can do this with binfmt-misc,
but that doesn't work on legacy systems.

> If I knew how to detect whether a binary is a .NET binary, I'd offer to
> make the changes myself :-)

The binary has to be a PE file, and I believe there are distinguishing
markers within the first 256 bytes or so.  (That's the main reason why
the kernel binfmt-misc handler can't tell the difference between windows
and .net binaries, it only looks at the first 128 bytes.)

- Dick

More information about the Mono-devel-list mailing list