[转帖] .NET FrameWork 版本的确定方法

检测电脑安装的net framework版本

 

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 have 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 are listed under the NDP subkey. The version number is stored in the Version entry. For the .NET Framework 4 the Versionentry is under the Client or Full subkey (under NDP), or under both subkeys.

    System_CAPS_noteNote

    The "NET Framework Setup" folder in the registry 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 have 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.

    System_CAPS_noteNote

    If the Full subkey is not present, then you do not 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 has been installed on that computer.

    The registry entry for the .NET Framework 4.5.

      

    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 2012 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 10 systems: 393295

    On all other OS versions: 393297

    .NET Framework 4.6

    On Windows 10 November Update systems: 394254

    On all other OS versions: 394271

    .NET Framework 4.6.1

    On Windows 10 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_LOCAL_MACHINE in the Windows registry.

    The following code shows an example of this query.

     

    最新文档:

    VersionValue of the Release DWORD
    .NET Framework 4.5378389
    .NET Framework 4.5.1 installed with Windows 8.1378675
    .NET Framework 4.5.1 installed on Windows 8, Windows 7 SP1, or Windows Vista SP2378758
    .NET Framework 4.5.2379893
    .NET Framework 4.6 installed with Windows 10393295
    .NET Framework 4.6 installed on all other Windows OS versions393297
    .NET Framework 4.6.1 installed on Windows 10394254
    .NET Framework 4.6.1 installed on all other Windows OS versions394271
    .NET Framework 4.6.2 installed on Windows 10 Anniversary Update394802
    .NET Framework 4.6.2 installed on all other Windows OS versions394806
    .NET Framework 4.7 installed on Windows 10 Creators Update460798
    .NET Framework 4.7 installed on all other Windows OS versions460805
    .NET Framework 4.7.1 installed on Windows 10 Fall Creators Update461308
    .NET Framework 4.7.1 installed on all other Windows OS versions461310
    .NET Framework 4.7.2 installed on Windows 10 April 2018 Update461808
    .NET Framework 4.7.2 installed on all other Windows OS versions461814

CopyFrom

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

转载于:https://www.cnblogs.com/jinanxiaolaohu/p/9139509.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值