问题
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?
回答1:
From Wikipedia and 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:
- Windows 7 - 3.5
- Vista - 2.0 and 3.0
- XP - not installed
- XP SP2 - not installed
- XP SP3 - not installed
If you want to be certain that you application runs on all of these, you will have to install the framework yourself - use SmallestDotNet.com for this.
回答2:
I would like to point out, that Windows XP SP3 does NOT have .NET Framework 3.5 (Full profile) installed. I just found out and was scared :-0
回答3:
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...
回答4:
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.
http://blogs.windowsclient.net/trickster92/archive/2008/05/21/introducing-the-net-framework-client-profile.aspx
回答5:
The version of .NET framework could be a little different on each computer based on what software they have already installed.
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.
http://msdn2.microsoft.com/en-us/netframework/aa731542.aspx
来源:https://stackoverflow.com/questions/2438937/what-version-of-the-net-framework-is-installed-on-windows-xp-vista-and-7