【发布时间】:2015-10-07 19:56:56
【问题描述】:
我正在尝试为 MFC 应用程序(不是 .NET 应用程序)执行程序集重定向。
MFC 应用程序和所有外部 DLL 完全隔离。
MyDLL 也是使用 MFC 编写的。
Application.manifest 包含对
的依赖项"MyDLL,version=1.0.0.0"
MyDLL 具有此程序集标识:"MyDLL,version=2.0.0.0"
Application.exe.config 包含重定向
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="MyDLL" culture="neutral" />
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
但不支持此重定向。
是否可以对 .NET 运行时程序集以外的其他程序执行重定向?
如果没有,是否有其他方式来执行重定向?
【问题讨论】: