[Mono-list] Get binary directory in an mkbundle'd app

cocowalla colin.anderson333 at gmail.com
Sat May 10 21:35:13 UTC 2014


Yes, I'm afraid it's another mkbundle question :)

I have an mkbundle'd app, and I need to get the directory of the binary (on
Linux, if it matters).

`Assembly.GetExecutingAssembly().CodeBase` doesn't work - it gives the path
from where the binary was started, not the path in which the binary resides.

`AppDomain.CurrentDomain.BaseDirectory` doesn't work - it gives the path
from where the binary was started, not the path in which the binary resides.

`Assembly.GetExecutingAssembly().Location` doesn't work - it just gives the
binary name, rather than the path in which it resides.

How can I get the directory in which the binary actually resides?



--
View this message in context: http://mono.1490590.n4.nabble.com/Get-binary-directory-in-an-mkbundle-d-app-tp4662736.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list