Windows XP、Vista 和 7 上安装了哪个版本的 .NET 框架?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2438937/
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 14:04:21  来源:igfitidea点击:

What version of the .NET framework is installed on Windows XP, Vista, and 7?

.netwindowsmultiplatform

提问by Mohit Deshpande

I have an application that uses the .NET framework 3.5. I am building this application for a college to help students to study. Most students usually have Windows XP SP2, Windows Vista, or Windows 7. (Sorry Mac users! The Mac version will come out in about 6 months) What version of the .NET framework is installed on Windows XP, Vista, and 7; and will my application run on all of those platforms?

我有一个使用 .NET 框架 3.5 的应用程序。我正在为一所大学构建此应用程序,以帮助学生学习。大多数学生通常使用Windows XP SP2、Windows Vista 或Windows 7。(抱歉Mac 用户!Mac 版本将在大约6 个月后推出)Windows XP、Vista 和7 上安装的.NET 框架是什么版本;我的应用程序会在所有这些平台上运行吗?

回答by Oded

From Wikipediaand MSDN:

来自维基百科MSDN

.NET Framework 1.1: Windows Server 2003
.NET Framework 2.0: Windows Server 2003 R2
.NET Framework 3.0: Windows Vista, Windows Server 2008
.NET Framework 3.5: Windows 7, Windows Server 2008 R2
.NET Framework 4.0: n/a
.NET Framework 4.5: Windows 8, Windows Server 2012
.NET Framework 4.5.1: Windows 8.1, Windows Server 2012 R2
.NET Framework 4.5.2: n/a
.NET Framework 4.6: Windows 10
.NET Framework 4.6.1: Windows 10 v1511
.NET Framework 4.6.2: Windows 10 v1607, Windows Server 2016

.NET Compact Framework 1.0 (SP2): Windows Mobile 5.0
.NET Compact Framework 2.0: Windows Mobile 6.0 

From other SO questions:

从其他SO问题:

If you want to be certain that you application runs on all of these, you will have to install the framework yourself - use SmallestDotNet.comfor this.

如果你想确定你的应用程序在所有这些上运行,你必须自己安装框架 -为此使用SmallestDotNet.com

回答by Marcel

I would like to point out, that Windows XP SP3 does NOThave .NET Framework 3.5 (Full profile) installed. I just found out and was scared :-0

我想指出的是,该Windows XP SP3不会具有安装了.NET Framework 3.5(完整的个人资料)。我刚刚发现并害怕:-0

回答by Fedor

As you're going to install .NET Framework with your application you may also find .NET Client Profile useful. It's a small version of framework that can be bundled with your distribution.

当您要随应用程序安装 .NET Framework 时,您可能还会发现 .NET Client Profile 很有用。它是一个小版本的框架,可以与您的发行版捆绑在一起。

http://blogs.windowsclient.net/trickster92/archive/2008/05/21/introducing-the-net-framework-client-profile.aspx

http://blogs.windowsclient.net/trickster92/archive/2008/05/21/introducing-the-net-framework-client-profile.aspx

回答by t0mm13b

Have a look at this similar question 'Is there a way to determine the .NET Framework version from the command line?' in which I posted an answer here. In that answer there is a link to the article on CodeProject that does exactly that...

看看这个类似的问题“有没有办法从命令行确定 .NET Framework 版本?” 我在这里发布了一个答案。在那个答案中有一个指向 CodeProject 上的文章的链接,它正是这样做的......

回答by Bactos

The version of .NET framework could be a little different on each computer based on what software they have already installed.

.NET 框架的版本在每台计算机上可能略有不同,具体取决于它们已安装的软件。

A similar question was asked here on Stackoverflow and one of the responses that might be helpful might be ..... to take a look at this article.

在 Stackoverflow 上提出了一个类似的问题,其中一个可能有帮助的回答可能是……看看这篇文章。

http://msdn2.microsoft.com/en-us/netframework/aa731542.aspx

http://msdn2.microsoft.com/en-us/netframework/aa731542.aspx