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

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon May 16 19:57:12 EDT 2005


On Fri, 2005-05-13 at 16:06 +0300, Alexandros Frantzis wrote:
> Hello,
> 
> 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?

Environment.CommandLine should still work.

-Gonzalo





More information about the Mono-devel-list mailing list