[Mono-dev] mkbundle & Assembly.GetEntryAssembly()

Robert Jordan robertj at gmx.net
Tue May 16 00:17:31 UTC 2017

On 15.05.2017 21:14, Rick Tillery wrote:
> The problem is that this means the entry assembly being returned is not 
> the actual entry point, and I don't see a way to determine the assembly 
> that is the correct entry point.

This is by design. From the point of view of the Mono runtime,
the entry assembly is actually that one that was passed to mkbundle.

It would make little sense to modify the code base of the
main assembly to point to the native executable of the bundle,
because you won't be able to load this file anyway, as
it isn't an assembly anymore.

If you're only interested in the code base path you may want to
look how it's done natively:



More information about the Mono-devel-list mailing list