[Mono-list] linux, binfmts:Unexpected behavior
mabra at manfbraun.de
mabra at manfbraun.de
Thu Jan 3 21:28:15 UTC 2013
Hi !
Thanks, but: NO ! This would be too late to load associated assemblies the
usual way.
It would require me to change each's tool's source.
Ether I misunderstood how binfmt is working, or, it is probbaly a bug.
Assemblies loaded from an executable are usually always in the exe's
directory [or in the GAC].
If someone has more infos about this, let me now.
Thanks and
best regards,
++mabra
From: daniel at d15.biz [mailto:daniel at d15.biz] On Behalf Of Daniel Lo Nigro
Sent: Thursday, January 03, 2013 11:00 AM
To: Manfred Braun
Cc: mono-list at lists.ximian.com
Subject: Re: [Mono-list] linux, binfmts:Unexpected behavior
Could you just set the current directory manually with something like:
var appDirectory =
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Directory.SetCurrentDirectory(appDirectory);
(not tested)
On Thu, Jan 3, 2013 at 5:02 AM, <mabra at manfbraun.de> wrote:
Hi All !
I moved over a lot of utilities from windows to linux, but starting them
using "mono ..." is a pain and luckily, I discovered "binfmts".
The execubales are started, but their expected path is just wrong.
So, a manually given complete path, works just fine:
myuser> mono /usr/share/WakeTheBox/WakeTheBox.exe hel
AppDomain.CurrentDomain.BaseDirectory: /usr/share/WakeTheBox/
Running via "binfmts" looks strange:
myuser> WakeTheBox.exe hel
AppDomain.CurrentDomain.BaseDirectory: /usr/sbin/
Any idea to change this, would be really great. It is completely
impracticable to give
each executable a separate startfile. It looks to me, as if "binfmts" just
run the
executables with a wrong configured path.
I am with mono 2.10.8.1 on Ubuntu 12.04.
Best regards,
++mabra
_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130103/f8323b0c/attachment-0001.html>
More information about the Mono-list
mailing list