<div dir="ltr">Yesterday I tested my code, and already patched it to load the Mono.Security.dll from bin/windows folder only when the program was running on windows.<div><br></div><div>It was put at first attempt to load it from PGSQL module. and it worked fine at windows. I didn't tested on linux yet. and still need to test also on Robust.</div>
<div><br></div><div>The implementation was exacly what Sean described, an event that is fired when any assembly isnt found at default directories, then I verify if it is running Mono environment and only use Assembly.Load when it's not. The librarie is stored at bin/windows folder, so the program don't load it unless for this code.</div>
<div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Fernando Oliveira<div><a href="http://oliveira.eti.br" target="_blank">http://oliveira.eti.br</a><br><br><a href="http://twitter.com/oliveira_lands" target="_blank">http://twitter.com/oliveira_lands</a><div>
<div><br></div><div><br></div></div></div></div></div>
<br><br><div class="gmail_quote">2013/10/16 Latif Khalifa <span dir="ltr"><<a href="mailto:latifer@streamgrid.net" target="_blank">latifer@streamgrid.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We used to ship Mono.Security.dll with libopenmetaverse. It caused<br>
all sorts of trouble for Linux users, because mono on startup will<br>
load the one from cwd preferably. So shipping it in bin/windows that<br>
mono will not know about is the only way to go.<br>
<br>
I wish we thought of this approach back then ;)<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Oct 16, 2013 at 5:08 AM, Fernando Francisco de Oliveira<br>
<<a href="mailto:fernando@oliveira.eti.br">fernando@oliveira.eti.br</a>> wrote:<br>
> Hello<br>
><br>
> I was investigating the bug<br>
> (<a href="http://opensimulator.org/mantis/view.php?id=6803" target="_blank">http://opensimulator.org/mantis/view.php?id=6803</a>) found that<br>
> Mono.Security.dll which is packaged with Npgsql.dll library is needed on<br>
> Windows, but can't be distributed on Linux, because mono already have it and<br>
> gives conflicts error.<br>
><br>
> I would like to discuss about distributing the Mono.Security.dll on a folder<br>
> above bin like "bin/windows" folder, which could contains the libraries that<br>
> only is needed on windows.<br>
><br>
> I did a change on PGSQL project to load dynamicaly Mono.Security only if<br>
> it's running on Windows, and from that folder.<br>
> If it running on Mono, it load it from GAC (if available) and don't load the<br>
> windows dll.<br>
><br>
> <a href="http://pastebin.com/WdzfmbSr" target="_blank">http://pastebin.com/WdzfmbSr</a><br>
><br>
> Let's talk about it ?<br>
><br>
> Fernando Oliveira<br>
> <a href="http://oliveira.eti.br" target="_blank">http://oliveira.eti.br</a><br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Opensim-dev mailing list<br>
> <a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
> <a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
</div></div></blockquote></div><br></div>