You can do this through the application configuration file: assemblyBinding element , or rather, the probe element :
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2\subbin;bin3"/>
</assemblyBinding>
</runtime>
</configuration>
This will cause the runtime to search for assemblies in directories bin, bin2, bin2\subbinand bin3, all of which are subdirectories of the application directory.
source
share