Friday, July 15, 2011

Put the dlls in separate directory

In dot net you can put the dlls in separate directory from the exe. You need to add following code in your config file.

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


privatePath : contains the directory name where put your dll files. It may contain multiple directory name separated by semi colon.

No comments:

Followers

Link