更新DLL参考 [英] Update DLL reference

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

问题描述

我想将.NET项目中使用的某些DLL更新到最新版本,并且我注意到,如果用新版本替换文件系统上的DLL,VS 2012会在属性"中更新DLL版本号.窗口.

I wanted to update some DLLs used in my .NET project to the latest version and I've noticed that, if I replace the DLLs on the file system with their new versions, VS 2012 updates the DLL version number in the Properties window.

这是VS 2012的一些新功能吗?我不记得在VS 2010中看到过它(我希望它需要更多的手动处理).

Is this some new feature of VS 2012? I don't remember seeing it in VS 2010 (I expected it would need more manual handling).

这是行得通吗,还是应该从引用中手动删除并重新添加DLL,以确保?

Is this working right, or should I remove and re-add the DLLs manually from the references, just to be sure?

无论如何,我的项目可以编译并正常运行,所以我想它可以工作...

Anyway, my project compiles and runs fine, so I guess it works...

我想它能起作用是因为DLL的名称不是很强( http://msdn.microsoft.com/en-us/library/wd40t7ad.aspx )? 如果他们是我,也许我应该重新添加他们... 在项目文件中,我看到它具有旧版本号,但是在属性窗口中,我看到了新版本号...

I guess it works because the DLLs are not strongly named (http://msdn.microsoft.com/en-us/library/wd40t7ad.aspx)? Perhaps I should re-add them if they were... Inside the project file I saw it had the old version number, but in the properties window I saw the new one...

谢谢!

推荐答案

最好删除并重新添加您的引用.您自己说项目文件不是最新的.

It's better to remove and re-add your references. You said it yourself that the project file was not up-to-date.

我不确定是否有VS的附加组件可以使DLL的更新更加容易.如果没有的话,肯定有人应该做一个.在大型项目中更改程序集引用是@ss的痛苦.

I am not sure if there is an add-on for VS that could make updating DLLs easier. If there isn't one, definitely someone should make one. Changing assembly references in large projects is a pain in the @ss.

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

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