.Net 中的版本和“运行时版本"有什么区别? [英] What is the difference between Version and 'Runtime Version' in .Net?
问题描述
当我在 Visual Studio 中打开我的项目中引用的 dll 之一的属性窗口时,我看到一个版本和一个运行时版本.
When I open the properties window of one of the referenced dlls in my project in Visual Studio I see a Version and also a runtime version .
实际上我正在检查的是 Rhino.Mocks 库.我看到
Actually it is Rhino.Mocks library I am checking. And I see
- 运行时版本:v2.0.50727
- 版本:3.6.0.0
有什么区别?(这是否意味着我无法使用 3.6.0.0 的 Rhino Mocks?)
What is the difference? (Does it mean I am not able to use 3.6.0.0 of the Rhino Mocks?)
推荐答案
Runtime 是 DLL 需要的 CLR(或 .NET 框架)的版本(通常是最低要求),version 是 DLL 的版本.
Runtime is the version of the CLR (or .NET framework) the DLL needs (usually as a minimum), version is the DLL's version.
只要您安装了最小运行时间,它就应该可用.但是,作为一般规则,通常最好选择最新版本的库以获得最新的运行时支持等.
So long as you have the minimum runtime installed, it should be usable. However as a general rule it is usually best to select the latest version of the library for the latest runtime support etc.
这篇关于.Net 中的版本和“运行时版本"有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!