从此页面(未经我试用):
在程序初始化的某个位置(在从引用程序集访问任何类之前)执行此操作:
AppDomain.CurrentDomain.AppendPrivatePath(@"binDLLs");
编辑: 本文说AppendPrivatePath被认为已过时,但也提供了一种解决方法。
编辑2: 看起来最简单,最简单的方法是在app.config文件中(请参阅此处):
<configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="binDLLs" /> </assemblyBinding> </runtime></configuration>



