[英]Why the version of System.dll is 2.x in my .net project targeting .net framework 3.5?
I've a solution targeting .net framework 3.5. 我有一个针对.net框架3.5的解决方案。 All the references to core dlls have runtime version 2.x since they were compiled with it.
所有对核心dll的引用都有运行时版本2.x,因为它们是用它编译的。 Why is it so?
为什么会这样? Does this mean I'm not using latest versions of those DLLs with bug-fixes?
这是否意味着我没有使用那些带有错误修复的DLL的最新版本?
Framework 3.5 is still working on the CLR 2.0. Framework 3.5仍在研究CLR 2.0。 The V3 and V3.5 only added some (a lot in fact) new classes, but didn't changed the existing assemblies.
V3和V3.5只添加了一些(实际上很多)新类,但没有改变现有的程序集。 The compiler has also changed, but in fact, not the runtime.
编译器也发生了变化,但事实上并非运行时。
That's why in %windir%\\Microsoft.NET\\Framework\\v3.5
(or Framwork64), you won't find the assemblies already available in the V2. 这就是为什么在
%windir%\\Microsoft.NET\\Framework\\v3.5
(或Framwork64)中,您将找不到V2中已有的程序集。
The Framework V4 has introduced a new version of the CLR. Framework V4引入了新版本的CLR。 You'll find accordingly in
%windir%\\Microsoft.NET\\Framework\\v4.0.30319
all assemblies. 您将在
%windir%\\Microsoft.NET\\Framework\\v4.0.30319
所有程序集。
The Versions and Dependencies page list all versions, both base class library version and clr version. Versions and Dependencies页面列出了所有版本,包括基类库版本和clr版本。
[Edit] As the V4.5 is coming soon, the same table is available for the next version. [编辑]随着V4.5即将推出,下一版本可以使用相同的表格 。
No, you are using the latest, 3.5 still depending on 2.x in some assemblies file. 不,您使用的是最新版本,3.5依赖于某些程序集文件中的2.x. try to check the assemblies that are coming with 2.x you will never find them as 3.x so there is no new version for those files.
尝试检查2.x附带的程序集,你永远不会发现它们是3.x所以这些文件没有新版本。
Add 1: To check which framework you are targeting go to project prosperity-> Compile->click on Advance compile Options-> Target Framework. 添加1:要检查您要定位的框架,请转到项目繁荣 - >编译 - >单击高级编译选项 - >目标框架。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.