[英]My project references 3 different versions of mscorlib.dll
I noticed that one of my projects references 3 different versions of mscorlib: 我注意到我的一个项目引用了3个不同版本的mscorlib:
1.0.5000.0
2.0.0.0
4.0.0.0
This post about "mscorlib.dll & System.dll " helped me understand what mscorlib is for, but I'm wondering whether it's normal/necessary for an application to require multiple versions of this assembly. 这篇关于“mscorlib.dll和System.dll ”的帖子帮助我理解了mscorlib的用途,但我想知道应用程序是否正常/必需要求此程序集的多个版本。 Perhaps this happened because I upgraded my project from VS 2005 to VS 2010. 也许这是因为我将我的项目从VS 2005升级到VS 2010。
Is it possible for me to make my project only reference the 4.0.0.0 version of mscorlib? 是否有可能让我的项目仅引用mscorlib的4.0.0.0版本?
There are many reasons why you could end up like that. 有很多原因可以让你最终得到这样的结果。 If you only want v4.0, make sure you 如果你只想要v4.0,请确保你
Alternatively, you can remove references to all components that might be referencing older versions of mscorlib. 或者,您可以删除对可能引用旧版mscorlib的所有组件的引用。 This may not be possible as all vendors may not upgrade their components to totally v 4.0 这可能是不可能的,因为所有供应商可能无法将其组件升级到完全v 4.0
Personally, I wouldn't worry about them unless they are root cause of a major bug (which is unlikely). 就个人而言,我不会担心它们,除非它们是一个主要错误的根本原因(这是不可能的)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.