You can do this through application config file: assemblyBinding element, more precisely - probing:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2subbin;bin3"/>
</assemblyBinding>
</runtime>
</configuration>
This will force runtime to look for assemblies in bin
, bin2
, bin2subbin
and bin3
directories, all of which are subdirectories of the application's base directory.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…