运行时如何定位程序集。

下面的示例说明如何指定运行时应搜索的目录。

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

 中指定的目录必须是应用程序基目录的子目录。

相关文章: