How to install PrivateBinPath in MEF?

How to install PrivateBinPath in MEF?

This is what I am trying to do: How to change the link loading path in .NET?

+2
source share
1 answer

You can do this through the application configuration file: assemblyBinding element , or rather, the probe element :

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

This will cause the runtime to search for assemblies in directories bin, bin2, bin2\subbinand bin3, all of which are subdirectories of the application directory.

+7
source

Source: https://habr.com/ru/post/1759976/


All Articles