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: [email protected] [mailto:[email protected]] On Behalf Of Daniel Lo Nigro Sent: Thursday, January 03, 2013 11:00 AM To: Manfred Braun Cc: [email protected] 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, <[email protected]> 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 - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
