[Mono-devel-list] Getting path of bundled executable at runtime

Alexandros Frantzis alfius at freemail.gr
Fri May 13 09:06:47 EDT 2005


I need to find out the path of a bundled mono executable (built with
mkbundle) at runtime. Until now I have been using
Assembly.GetCallingAssembly().Location but this fails in the bundle
because the assemblies are loaded from memory.

I have tried various System.Enviroment.* methods and properties but they
don't work correctly in the case of a bundled executable. 

Is there a way I can get the path of the bundled executable?

Thank you,

More information about the Mono-devel-list mailing list