[reprint]. NET FrameWork Version Determination method

Source: Internet
Author: User
Tags creators update

https://msdn.microsoft.com/en-us/library/hh925568 (v=vs.110). aspx

To find. NET Framework versions by viewing the registry (. NET Framework 1-4)
  1. On the Start menu, choose Run.

  2. In the Open box, enter Regedit.exe.

    You must has administrative credentials to run Regedit.exe.

  3. In the Registry Editor, open the following subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework SETUP\NDP

    The installed versions is listed under the NDP subkey. The version number is stored in the version entry. For the. NET Framework 4 The Versionentry are under the Client or Full subkey (under NDP), or under both subkeys.

    Note

    The "NET Framework Setup" folder in the registry does does not begin with a period.

To find. NET Framework versions by viewing the registry (. NET Framework 4.5 and later)
  1. On the Start menu, choose Run.

  2. In the Open box, enter Regedit.exe.

    You must has administrative credentials to run Regedit.exe.

  3. In the Registry Editor, open the following subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\ndp\v4\full

    Note that the path to the full subkey includes the subkey net Framework rather than . NET framework .

    Note

    If the full subkey are not present and then you don't have the. NET Framework 4.5 or later installed.

    Check for a DWORD value named Release. The existence of the Release DWORD indicates that the. NET Framework 4.5 or newer have been installed on that comp Uter.

    The value of the Release DWORD indicates which version of the. NET Framework is installed.

    Value of the Release DWORD

    Version

    378389

    . NET Framework 4.5

    378675

    . NET Framework 4.5.1 installed with Windows 8.1 or Windows Server R2

    378758

    . NET Framework 4.5.1 installed on Windows 8, Windows 7 SP1, or Windows Vista SP2

    379893

    . NET Framework 4.5.2

    On Windows Ten systems:393295

    On all other OS versions:393297

    . NET Framework 4.6

    On Windows November Update systems:394254

    On all other OS versions:394271

    . NET Framework 4.6.1

    On Windows Anniversary update:394802

    On all other OS versions:394806

    . NET Framework 4.6.2

To find. NET Framework versions by querying the Registry in code (. NET Framework 1-4)
  • Use the Microsoft.Win32.RegistryKey class to access the Software\microsoft\net Framework setup\ndp\ subkey under Hkey_loca L_machine in the Windows registry.

    The following code shows an example of this query.

    Latest Documents:

    Version Value of the Release DWORD
    . NET Framework 4.5 378389
    . NET Framework 4.5.1 installed with Windows 8.1 378675
    . NET Framework 4.5.1 installed on Windows 8, Windows 7 SP1, or Windows Vista SP2 378758
    . NET Framework 4.5.2 379893
    . NET Framework 4.6 installed with Windows 10 393295
    . NET Framework 4.6 installed on all other Windows OS versions 393297
    . NET Framework 4.6.1 installed on Windows 10 394254
    . NET Framework 4.6.1 installed on all other Windows OS versions 394271
    . NET Framework 4.6.2 installed on Windows anniversary Update 394802
    . NET Framework 4.6.2 installed on all other Windows OS versions 394806
    . NET Framework 4.7 installed on Windows creators Update 460798
    . NET Framework 4.7 installed on all other Windows OS versions 460805
    . NET Framework 4.7.1 installed on Windows Fall creators Update 461308
    . NET Framework 4.7.1 installed on all other Windows OS versions 461310
    . NET Framework 4.7.2 installed on Windows April 2018 Update 461808
    . NET Framework 4.7.2 installed on all other Windows OS versions 461814

CopyFrom

Https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed

[reprint]. NET FrameWork Version Determination method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.