C# Winform程序把引用的dll放到指定目录

如果项目引用了很多dll,发布的时候放同一目录会很乱,这时候可以用privatePath后面指定搜索的dll文件夹,多个用;分隔

另外,发现在配置文件夹中 configSource 也是可以指定目录的
  <runtime>  
    <gcConcurrent enabled="true" />  
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">  
      <publisherPolicy apply="yes" />  
      <probing privatePath="Dlls" />  
    </assemblyBinding>  
  </runtime>  
原文地址:https://www.cnblogs.com/ssboy/p/4418744.html