Microsoft Developer Network > Support > 761FC45B-D151-45A6-90D5-D7CD192A50A6 > 761FC45B-D151-45A6-90D5-D7CD192A50A6 >  How to determine which versions of the .NET Fra...
Article ID:318785-Last Revised:11/7/2008-Revision:20.0

How to determine which versions of the .NET Framework are installed and whether service packs have been applied

SUMMARY

This article describes how to determine which versions of the Microsoft .NET Framework are installed. This article also helps you determine whether any .NET Framework service packs are installed.

For more information about service packs for the .NET Framework 1.0, click the following article number to view the article in the Microsoft Knowledge Base:
318836 How to obtain the latest .NET Framework 1.0 service pack
The Microsoft Update service updates installed versions of the .NET Framework. To make sure that the computer is always up to date, turn on Automatic Updates in Control Panel.

MORE INFORMATION

Versions of the .NET Framework

The released versions of the .NET Framework have the following version information.
.NET Framework versionRevisionVersion
3.5Original release3.5.21022.8
3.5Service Pack 13.5.30729.1
3.0Original release3.0.4506.30
3.0Service Pack 13.0.4506.648
3.0Service Pack 23.0.4506.2152
2.0Original release2.0.50727.42
2.0Service Pack 12.0.50727.1433
2.0Service Pack 22.0.50727.3053
1.1Original release1.1.4322.573
1.1Service Pack 11.1.4322.2032
1.1Service Pack 1 (Windows Server 2003 32-bit version*)1.1.4322.2300
1.0Original release1.0.3705.0
1.0Service Pack 11.0.3705.209
1.0Service Pack 21.0.3705.288
1.0Service Pack 31.0.3705.6018
*The Microsoft .NET Framework 1.1 is included with the 32-bit version of Windows Server 2003.

Note This information should be used as a general guide for determining which versions of the .NET Framework are installed on a computer. Be aware that files that have a later version number may be files that were included in a hotfix or a hotfix rollup package. These versions are outside the scope of this article.

How to determine which versions of the .NET Framework are installed

To determine which versions of the .NET Framework are installed, locate the %systemroot%\Microsoft.NET\Framework folder. To open this folder, you can paste this address into a Windows Explorer address bar. The following folders contain the released versions of the .NET Framework:
  • v3.5
  • v3.0
  • v2.0.50727
  • v1.1.4322
  • v1.0.3705
Note If you see other folders that have a vN.N.NXXXX format, they may contain beta versions or pre-released versions of the .NET Framework. Those versions are outside the scope of this article.

To determine which versions of the .NET Framework are installed on a computer, follow these steps:
  1. Open any one of the folders in the previous list.
  2. Right-click the Mscorlib.dll file, and then click Properties.
  3. Click the Version tab, and then note the file version.
  4. Use the previous list to determine which version of the .NET Framework is installed on the computer, and then click OK.
Repeat these steps for each version of the .NET Framework on the computer.

How to troubleshoot a .NET Framework installation

For more information about how to troubleshoot a .NET Framework installation, click the following article numbers to view the articles in the Microsoft Knowledge Base:
908077 How to manually remove and then reinstall the .NET Framework 2.0
824643 How to troubleshoot Microsoft .NET Framework 1.1 installation issues in Windows XP or in Windows 2000
830646 How to troubleshoot Microsoft .NET Framework 1.1 installation issues in Windows Server 2003

REFERENCES

For more information about the benefits of the .NET Framework, click the following article number to view the article in the Microsoft Knowledge Base:
829019 Benefits of the Microsoft .NET Framework
For more information about different configurations of the .NET Framework 1.1, click the following article number to view the article in the Microsoft Knowledge Base:
915756 How to install and update the .NET Framework 1.1 on different operating systems
For more information about file versions for the .NET Framework 2.0, the .NET Framework 1.1, and the .NET Framework 1.0, visit the following Microsoft Web site: For Visual C++ sample code that programmatically detects the .NET Framework 1.1, the .NET Framework 1.0, and the .NET Framework service packs, visit the following Microsoft Developer Network (MSDN) Web site: For more information about which .NET Framework version numbers correspond to which service pack, visit the following MSDN Web site:
APPLIES TO
  • Microsoft .NET Framework 2.0
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
Keywords:
kbdownload  kbinfo  kbsetup  KB318785
Community Content   What is Community Content?
Add new content RSS  Annotations
USe Registry key to determine Versions of .Net Framework      DSC_KE_MSFT   |   Edit   |   Show History

Replace the file detection method here:

To determine which versions of the .NET Framework are installed on a computer, follow these steps:

Open any one of the folders in the previous list.

Right-click the Mscorlib.dll file, and then click Properties.

Click the Version tab, and then note the file version.

Use the previous list to determine which version of the .NET Framework is installed on the computer, and then click OK.

Repeat these steps for each version of the .NET Framework on the computer.

With a registry method:

Key

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v<version>]

DWord Value Name and Value Data

SP = <ServiceLevel>

Tags What's this?: all (x) any (x) be (x) contentbug (x) do (x) have (x) idea? (x) just (x) latest (x) need (x) or (x) question: (x) the (x) to (x) updated (x) version? (x) versions (x) you (x) Add a tag
File does not exist      Keith4444444444   |   Edit   |   Show History
Mscorlib.dll only exists in the framework directory for 2.0, none of the other versions I have have the file. The version for 2.0 that I have is 2.0.50727.1434 which does not match any of the versions listed above.

Use the registry key noted above, the file method is useless.
Tags What's this?: - (x) all (x) and (x) any (x) anybody (x) be (x) continue (x) exact (x) for (x) guess (x) had (x) have (x) i (x) if (x) in (x) must (x) no (x) operate (x) questions (x) reside (x) resonses (x) say (x) that (x) the (x) therefore (x) to (x) update (x) versions (x) windows (x) would (x) Add a tag
Flag as ContentBug
Which version to update?      Mike12521   |   Edit   |   Show History
Do all the versions you currently have need to be updated or just the latest one? Anybody know???
Tags What's this?: Add a tag
Flag as ContentBug
For Details: Determine the Servicepack of .NET Framework      Frank Dzaebel ... slamteam   |   Edit   |   Show History
Because not always registry values or information under "Software" matches with the reality, better check the DLLs itself.
For updated Details and Beta versions see:

[Determine the Servicepack of .NET Framework]
http://dzaebel.net/NetVersions.htm

Processing
Page view tracker