简体   繁体   English

为什么我的.net项目中.net framework 3.5的System.dll版本是2.x?

[英]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.

相关问题 我的项目可以引用针对较低版本.net框架的程序集吗? - Can my project reference an assembly targeting a lower version of .net framework? 由于引用了针对.Net Framework 3.5的程序集,因此无法加载文件或程序集版本为2.0.5.0的系统 - Could not load file or assembly System, Version=2.0.5.0 due to the referenced assembly targeting .Net Framework 3.5 在同一.net项目中使用Lucene.net.dll的旧(2.x)和较新的(3.x)版本 - Use older (2.x) and newer (3.x) version of Lucene.net.dll in a same .net project .NET 3.5项目中的错误显示为.NET 2.x - Errors from a .NET 3.5 project show up as .NET 2.x 如何在.Net 3.5版本中使用system.web.dll - How to use system.web.dll in .Net 3.5 version 将.NET Framework版本4.5.1定位到通用Windows 10的项目 - Project targeting .NET Framework version 4.5.1 to Universal Windows 10 Visual Studio 2017项目的目标是.NET Framework 4.7版 - Visual Studio 2017 project is targeting .NET Framework version 4.7 从.NET 3.5项目中引用时,作为.NET 3.5构建的clr DLL“需要更高版本”。 - clr DLL built as .NET 3.5 “requires later version” when referenced from a .NET 3.5 project. 反映旧版本的System.dll - Reflecting an older version of System.dll 为什么添加对项目定位.NET Framework 4.0的引用失败? - Why does adding a reference to project targeting .NET Framework 4.0 fail?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM