[Mono-list] Using other Assemblies at Run time

Met @ Uber met@uberstats.com
Sun, 02 Nov 2003 13:00:59 -0500


The "bin" sub-directory is supported through XSP, but apparently not
through straight EXE execution.  I've also tried the <configuration>
pieces which Jaroslaw Kowalski posted from the MSDN site, but no go
either (the exact piece I tried is posted below).  Any ideas about
debugging or where I should look in the Mono src to add this
functionality?

Thanks a lot,

~ Metnetsky

===
MyApp.exe.config
===
<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <probing privatePath="bin/" />
      </assemblyBinding>
   </runtime>
</configuration>
===

On Sun, 2003-11-02 at 12:26, Jonathan Pryor wrote:
> I believe that .NET will also look under a "bin" sub-directory for
> Assembly resolution purposes, so that could be used.
> 
> You can also configure the directories to search for in the
> AppDomainSetup properties used when creating an AppDomain.  However, I
> don't know if it's possible to change the search directories after the
> AppDomain has started.
> 
> I'm not sure if Mono supports the "bin" sub-directory yet.
> 
> - Jon
> 
> On Sat, 2003-11-01 at 13:56, Met @ Uber wrote:
> > I'm writing an application that uses assemblies like log4net which do
> > not belong with the rest for many reasons.  As such, I'm trying to
> > figure out where it belongs.  If this were Java I'd create a lib
> > directory to hold the Jars in the same directory as the EXE, but this
> > isn't Java ;-)
> > 
> > So basically, where do I put assemblies I need to be distributed with my
> > application?  I do not want them in the main directory, for neatness,
> > separation, etc.
> > 
> > Thanks in advance,
> > 
> > ~ Matthew
> > 
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list