更换DLL到新版本 [英] Replacing dll to a newer version

查看:290
本文介绍了更换DLL到新版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多项目Caliburn.Micro应用。几个项目指的是相同的dll在一个单独的文件夹中。现在,我需要用较新的版本替换该DLL。我删除了所有项目的参考,并再次添加它。
,而我得到一个运行时错误:

I have a Caliburn.Micro application with many projects. Several projects refer to the same dll in a separate folder. Now I needed to replace that dll with a newer version. I removed the reference from all projects and added it again. But I am getting a runtime error:

能否请你帮忙吗?

PS我试图用fuslogvw.exe,但它显示了空:$ B​​ $ B

P.S. I tried to use fuslogvw.exe, but it shows up empty:

推荐答案

我觉得你使用Visual Studio。
:首先,检查所有的特定版本设置为False FileHelpers引用的属性(如果没有,这样做)。尝试清理并生成了。

I think you're using Visual Studio. First of all, check in the properties of all that FileHelpers referenced if the Specific Version is set to False (if not, do it). Try to clean and build back.

如果问题仍然存在,在您的解决方案的app.config,在配置部分,添加

If the problem persist, in the app.config of your solution, in the configuration section, add

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
            <assemblyIdentity name="FileHelper" publicKeyToken="3e0c08d59cc3d657" culture="neutral"/>
            <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
        </dependentAssembly>
    </assemblyBinding>
</runtime>

在这种方式,你应该能够在使用的版本强制到新的。

In this way you should be able to force the used version to the new one.

这篇关于更换DLL到新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆