- <?xml version="1.0" encoding="utf-8" ?>
- <configuration>
- <runtime>
- <legacyCorruptedStateExceptionsPolicy enabled="true" />
- <!-- CLR 启动期(在 Main 之前)的程序集搜索路径,让根目录只保留 EXE + 配置文件夹。
- privatePath 只能是 AppBase 的相对子目录,不递归,所以列出所有需要的子目录。
- App.OnStartup 中注册的 AssemblyResolve 作为运行期 fallback,处理 probing 未覆盖的位置。 -->
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <probing privatePath="Runtime;Runtime\Plugins;Runtime\dll;Runtime\dll\x64;Runtime\dll\x86;Runtime\zh-CN" />
- </assemblyBinding>
- </runtime>
- </configuration>
|