C++(MFC,而非 .NET)应用程序的程序集重定向
Assembly redirect for C++ (MFC, not .NET) application
我正在尝试为 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 运行时程序集执行重定向?
如果没有,是否有其他方法可以执行重定向?
所有问题都已使用 <windows>
标签而不是 <runtime>
标签解决。
我正在尝试为 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 运行时程序集执行重定向?
如果没有,是否有其他方法可以执行重定向?
所有问题都已使用 <windows>
标签而不是 <runtime>
标签解决。