[Mono-dev] Embedding w/ Config Errors | No Entry Assembly

Matthew Metnetsky met at uberstats.com
Tue Sep 8 08:56:24 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Jordan wrote:
> Add an entry point to your assembly:
> 
> class EntryPoint { static void Main () {} }
> 
> Then compile the assembly with "/target:exe" (you can rename it to .dll
> after the compilation).
> 
> Then call mono_jit_exec () somewhere after mono_jit_init ()
> and before calling other methods. See main_function () in
> one of Mono's embedding samples:
> 
> http://anonsvn.mono-project.com/viewvc/trunk/mono/samples/embed/teste.c?view=markup

Robert,

Thanks for the help, it worked like a charm! Calling an apple an orange
is weird, but in this case it does make sense.

Regards,

~ Matthew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqmVHgACgkQLrcoBjlTBf3R3wCdHjgb6UeHYh3TVbNndE2HIpNo
aLoAnjc/DDok5s537T9wie1ZwWbIH32w
=xoBP
-----END PGP SIGNATURE-----


More information about the Mono-devel-list mailing list