[Mono-devel-list] Getting path of bundled executable at runtime
bmaurer at ximian.com
Fri May 13 11:42:45 EDT 2005
On Fri, 2005-05-13 at 16:06 +0300, Alexandros Frantzis wrote:
> 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?
[benm at linux ~]$ ls -la /proc/self/exe
lrwxrwxrwx 1 benm users 0 2005-05-13 11:41 /proc/self/exe -> /bin/ls
More information about the Mono-devel-list