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?
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With