tags:

views:

112

answers:

1

I want to put all libraries (dll) used by my application to a subdirectory (let' say named "lib"). How to instruct assembly loader to look for referenced assemblies in that particular directory (which is a subdirectory of a directory, where main assembly exists)?

I assume it should be done by some settings in app.config, right?

+10  A: 

probing paths in your app.config. To borrow the example from MSDN:

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <probing privatePath="bin;bin2\subbin;bin3"/>
      </assemblyBinding>
   </runtime>
</configuration>
Marc Gravell
That's it, I even remember using it once :}
JohnM2