使Visual Studio不关心DLL版本 [英] Make Visual Studio not care about DLL versions

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

问题描述

有没有办法使视觉工作室不关心dll版本?这是一个坏主意吗?



我正在重置我的开发机器,我刚刚安装了最新版本的Pex和Moles(版本.92)。我所有的项目都是版本.91。



我们正在发布的中间,现在不想升级。此外,我找不到版本.91的安装程序。



当我尝试编译时,我收到一条消息,我没有参考。 (因此这个问题)

解决方案

版本很重要..根据定义,每个发布版本与下一个版本有所不同(或者不需要新版本)。如果您期望一个版本,而不是另一个版本,您的程序可能无法正常执行。



这是所谓的 DLL Hell 在...之前...如果您需要使用第三方组件(Crystal Reports Viewer是一个我们总是要处理),您只需使用用户PC上的任何安装版本的引用。我们的零售地点必须有一个特定版本的Crystal Reports,以便他们的书本报告能够正确打印,因此,我们必须永远坚持一个旧版本。在PC上升级Crystal打破了供应商的书本应用程序。在我的第一个PC上,当我安装或升级另一个PC时,我有几个应用程序中断。特别是,Real Player打破了我的电话应答机软件。这样的愚蠢的东西...



所以,版本很重要,即使这是一个烦恼。这也是为什么我对第三方工具有偏见,我没有代码,无法重新编译。


Is there a way to make visual studio not care about dll versions? Is this a bad idea?

I am resetting up my dev machine and I just installed the latest version of Pex and Moles (version .92). All my projects are on version .91.

We are in the middle of a release and don't want to upgrade right now. Also, I cannot find an installer to version .91.

When I try to compile I get a message that I am missing the reference. (Hence this question)

解决方案

The version is important.. By definition, there is a difference from each released version to the next (or there would be no need for a new version). Your program may not perform correctly if you are expecting one version and instead have another.

This was a part of what was known as "DLL Hell" in the pre-.NET days... If you needed to use a third party component (Crystal Reports Viewer is one we always had to deal with), you would just use the reference to whatever installed version was on the user's PC. Our retail locations had to have a specific version of Crystal Reports for their bookwork reports to print correctly, and because of that, we had to hold on to an old version forever.. Upgrading Crystal on the PC broke the vendor's bookwork app. On my first ever PC, I had several applications break when I would install or upgrade another. In particular, Real Player broke my telephone answering machine software. Goofy stuff like that...

So, the version IS important, even if it is an annoyance. It's also why I have a bias against third party tools that I have no code for, and can't recompile myself.

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

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