probing元素

https://msdn.microsoft.com/zh-cn/library/823z9h8w(v=vs.85).aspx

指定加载程序集时公共语言运行库要搜索的应用程序基子目录。

<configuration> 元素
  <runtime> 元素
    <runtime> -> <assemblyBinding> 元素
      <probing> 元素

<probing privatePath="paths"/>

以下几节描述了属性、子元素和父元素。

属性

属性说明

privatePath

必选的属性。

指定可能包含程序集的应用程序基目录的子目录。用分号分隔每个子目录。

子元素

无。

父元素

 
元素说明

assemblyBinding

包含有关程序集版本重定向和程序集位置的信息。

configuration

公共语言运行库和 .NET Framework 应用程序所使用的每个配置文件中的根元素。

runtime

包含有关程序集绑定和垃圾回收的信息。

示例
 

下面的示例说明如何指定运行库应在其中搜索程序集的应用程序基子目录。

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

其他参考:

Specifying an Assembly's Location 

https://msdn.microsoft.com/zh-cn/library/4191fzwb(v=vs.85).aspx


原文地址:https://www.cnblogs.com/rash/p/6054303.html