.net开发时引用的dll库文件会随exe一起,引用的dll太多的话,就得在一大堆文件中寻找exe文件,还是比较恼火的。
修改编译时生成的.exe.config文件,可以将dll文件单独存放,比如lib子文件夹;
只需要在.exe.config中,添加<runtime><assemblyBinding>节点。
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="dll文件夹1;dll文件夹2;f1\f2\文件夹3"/>
</assemblyBinding>
</runtime>
</configuration>
多个文件夹,以分号隔开。
详见原文 :
https://www.cnblogs.com/dengwx/p/5738249.html