【问题标题】:Assembly redirect for C++ (MFC, not .NET) applicationC++(MFC,而不是 .NET)应用程序的程序集重定向
【发布时间】: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 运行时程序集以外的其他程序执行重定向?
如果没有,是否有其他方式来执行重定向?

【问题讨论】:

    标签: c++ redirect mfc


    【解决方案1】:

    已使用&lt;windows&gt; 标签而不是&lt;runtime&gt; 解决所有问题。

    【讨论】:

      猜你喜欢
      • 2017-02-16
      • 1970-01-01
      • 2013-03-23
      • 1970-01-01
      • 1970-01-01
      • 2018-05-22
      • 1970-01-01
      • 1970-01-01
      • 2021-01-15
      相关资源
      最近更新 更多