How to move .NET libraries to a subdirectory?

后端 未结 1 1617
耶瑟儿~
耶瑟儿~ 2021-02-01 22:59

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 p

相关标签:
1条回答
  • 2021-02-01 23:49

    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>
    
    0 讨论(0)
提交回复
热议问题