c#开发把DLL放在其他目录中

有时候程序引用了一堆外部的dll,和可执行文件存在一起,显得很乱,

我就想把他们整理一下,分别放在不同的目录下。整理完,程序还

提示找不到dll了。

可以在config文件中指定搜索目录:

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

猜你喜欢

转载自www.cnblogs.com/sinceret/p/12448269.html