[Mono-list] Embedded Mono, Loading assemblies that also have a .config file

Robert Jordan robertj at gmx.net
Fri Feb 24 18:58:45 UTC 2012


On 24.02.2012 19:02, efontana wrote:
> Well, therein lies the problem, there is no Main assembly, because it's
> embedded mono,
> my main C++ program wants to (in general) load assemblies and construct
> objects and invoke methods
> arbitrarily, so there is no solution here then?

You're probably not calling mono_jit_exec () at some point.

Note that mono_jit_exec requires a /target:exe assembly.

If you only have a dll, you should add an empty Main

class EntryPoint { static void Main() { } }

to it and compile it with gmcs /target:exe -out:foo.dll

Robert



More information about the Mono-list mailing list