.NET Framework、CLR 和 Visual Studio 版本号如何相互关联?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/212896/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 10:21:16  来源:igfitidea点击:

How do the .NET Framework, CLR and Visual Studio version numbers relate to each other?

.netvisual-studioclrversions

提问by Scott Dorman

With the recent announcement of .NET 4.0 and Visual Studio 2010, it is becoming ever more difficult to keep track of what .NET Framework versions build on what version of the CLR and belong with which version(s) of Visual Studio.

随着最近 .NET 4.0 和 Visual Studio 2010 的发布,跟踪哪个 .NET Framework 版本建立在哪个版本的 CLR 上以及属于哪个版本的 Visual Studio 变得越来越困难。

Is there a definitive table that shows these relationships?

是否有明确的表格显示这些关系?

回答by Scott Dorman

Visual Studio                                 CLR           .NET Framework
----------------------------------------------------------------------------------------
Visual Studio .NET (Ranier)                   1.0.3705      1.0
Visual Studio 2003 (Everett)                  1.1.4322      1.1
Visual Studio 2005 (Whidbey)                  2.0.50727     2.0
Visual Studio 2005 with .NET 3.0 Extensions   2.0.50727     2.0, 3.0
Visual Studio 2008 (Orcas)                    2.0.50727     2.0 SP1, 3.0 SP1, 3.5
Visual Studio 2008 SP1                        2.0.50727     2.0 SP2, 3.0 SP2, 3.5 SP1
Visual Studio 2010 (Hawaii)                   4.0.30319     4.0

Expanding on this a bit, and including some of the information from dok1's answer, the actual version numbers for the different shipped builds of the .NET Framework are available on Aaron Stebner's blog, which covers everything from 1.0 through 3.5 SP1.

对此进行一点扩展,并包括来自 dok1 回答的一些信息,Aaron Stebner 的博客上提供了 .NET Framework 不同版本的实际版本号,该博客涵盖了从 1.0 到 3.5 SP1 的所有内容。

The actual Visual Studio version numbers are:

实际的 Visual Studio 版本号是:

Product Name                                 Version              Ship Date
----------------------------------------------------------------------------------------
Visual Studio .NET                            7.0.??               02/2002
Visual Studio .NET 2002 Service Pack 1        7.0.??
Visual Studio 2003                            7.1.??               04/2003
Visual Studio 2003 Service Pack 1             7.1.6030             09/13/2006
Visual Studio 2005                            8.0.5072.42
Visual Studio 2005 Service Pack 1                                  12/14/2006
Visual Studio 2008                            9.0.21022.8          11/19/2007 
Visual Studio 2008 SP1                        9.0.30729.1
Visual Studio 2010                            10.0.30319.1         04/12/2010
Visual Studio 2010 SP1                        10.0.40219.1         03/03/2011

Please help fill in the missing pieces. This is all I could easily find online.

请帮助填写缺失的部分。这就是我可以在网上轻松找到的所有内容。

Thanks to @DannySmurf for the information on the full version numbers for the CLR.

感谢@DannySmurf 提供有关 CLR 完整版本号的信息。

回答by Lucas

Note that while 3.0 bascially only added new assemblies (same CLR), 3.5 added new assemblies, new compiler, and updated the CLR to SP1 level.

请注意,虽然 3.0 基本上只添加了新程序集(相同的 CLR),但 3.5 添加了新程序集、新编译器,并将 CLR 更新到 SP1 级别。

Framework 4.0 will be a whole new CLR (4.0, no CLR 3.x) which will run side-by-side with CLRs 1.1 and 2.0. It will also have all-new assemblies versioned 4.0 instead of using the 2.0 assemblies.

Framework 4.0 将是一个全新的 CLR(4.0,没有 CLR 3.x),它将与 CLR 1.1 和 2.0 并行运行。它还将拥有 4.0 版的全新程序集,而不是使用 2.0 程序集。

Framework  CLR and Assemblies            Release
----------------------------------------------------------
1.0 RTM    1.0.3705.0                    Visual Studio .NET (aka VS.NET 2002)
1.0 SP1    1.0.3705.209
1.0 SP2    1.0.3705.288
1.0 SP3    1.0.3705.6018

1.1 RTM    1.1.4322.573                  VS.NET 2003
1.1 SP1    1.1.4322.2032
1.1 SP1    1.1.4322.2300                 Windows Server 2003

2.0 RTM    2.0.50727.42                  Visual Studio 2005 RTM
2.0 RTM    2.0.50727.312                 Windows Vista
2.0 SP1    2.0.50727.1433                Visual Studio 2008 RTM and .NET 3.5 RTM
2.0 SP2    2.0.50727.3053                Visual Studio 2008 SP1 and .NET 3.5 SP1
2.0 SP2    2.0.50727.4016                Windows Vista SP2 and Windows Server 2008 SP2
2.0 SP2    2.0.50727.4927                Windows 7

Framework  CLR           New assemblies
----------------------------------------------------------
3.0 RTM    2.0 RTM       3.0.4506.30     The only "out-of-band" non-SP framework release
3.0 SP1    2.0 SP1       3.0.4506.648    Visual Studio 2008 RTM and .NET 3.5 RTM
3.0 SP2    2.0 SP2       3.0.4506.2123   Visual Studio 2008 SP1 and .NET 3.5 SP1

3.5 RTM    2.0 SP1       3.5.21022.8     Visual Studio 2008 RTM and .NET 3.5 RTM
3.5 SP1    2.0 SP2       3.5.30729.01    Visual Studio 2008 SP1 and .NET 3.5 SP1
3.5 SP1    2.0 SP2       3.5.30729.4926  Windows 7

Framework  CLR and Assemblies            Release
----------------------------------------------------------
4.0 RTM    4.0.30319.1                   Visual Studio 2010

(This was collected from various answers and linked documents, especially the MSDN article How to determine which versions and service pack levels of the Microsoft .NET Framework are installedlinked by DOK.) A full list with KB update versions and support retirement dates can be found on Wikipedia, List of .NET Framework versions.

(这是从各种答案和链接文档中收集的,尤其是 MSDN 文章如何确定安装DOK链接的 Microsoft .NET Framework 的哪些版本和服务包级别。)可以提供包含 KB 更新版本和支持停用日期的完整列表可在 Wikipedia, List of .NET Framework versions 中找到

回答by DOK

It's hard to find, isn't it? I believe these are the versions (ignoring service packs)

很难找到,不是吗?我相信这些是版本(忽略服务包)

  • Visual Studio version 6 = last one before .NET, released in 1998
  • Visual Studio 2002 = version 7.1, Rainier, first .NET version retroactively added 2002 to the name, .NET 1.0 -- released Feb 2002
  • Visual Studio 2003 = version 7, Everett, .NET 1.1 -- released early 2003.
  • Visual Studio 2005 = version 8 Whidbey, .NET 2.0 & 3.0 -- launch was Nov 2005. No longer called Visual Studio .NET
  • Visual Studio 2008 = version 9 Orcas, .NET 3.5 -- released 11/19/2007 as 9.0.21022.8
  • Visual Studio 2010 = version 10 Hawaii
  • Visual Studio 版本 6 = .NET之前的最后一个版本,于 1998 年发布
  • Visual Studio 2002 = 7.1 版,Rainier,第一个 .NET 版本追溯添加了 2002 年的名称,.NET 1.0 -- 2002 年 2 月发布
  • Visual Studio 2003 = 版本 7、Everett、.NET 1.1——2003 年初发布。
  • Visual Studio 2005 = 版本 8 Whidbey、.NET 2.0 和 3.0 -- 于 2005 年 11 月发布。不再称为 Visual Studio .NET
  • Visual Studio 2008 = 版本 9 Orcas,.NET 3.5 -- 2007 年 11 月 19 日发布为 9.0.21022.8
  • Visual Studio 2010 = 版本 10 夏威夷

The next version of Visual Studio Team System is Rosario.

Visual Studio Team System 的下一个版本是 Rosario。

How to determine which versions and service pack levels of the Microsoft .NET Framework are installedwill give you more information about build numbers and service packs, but only through .NET 2.0.

如何确定安装了 Microsoft .NET Framework 的哪些版本和 Service Pack 级别将为您提供有关内部版本号和 Service Pack 的更多信息,但仅限于 .NET 2.0。

回答by Scott P

Framework 4.0 RTM

框架 4.0 RTM

Visual Studio 2010

视觉工作室 2010

Assembly Version 4.0.30319

汇编版本 4.0.30319

Date 4/12/2010

日期 4/12/2010