.Net: How do I find the .NET version?

后端 未结 19 2378
我寻月下人不归
我寻月下人不归 2020-11-28 00:49

How do I find out which version of .NET is installed?

I\'m looking for something as simple as \"java -version\" that I can type at the command prompt and that tells

相关标签:
19条回答
  • 2020-11-28 00:56

    For anyone running Windows 10 1607 and looking for .net 4.7. Disregard all of the above.

    It's not in the Registry, C:\Windows\Microsoft.NET folder or the Installed Programs list or the WMIC display of that same list.

    Look for "installed updates" KB3186568.

    0 讨论(0)
  • 2020-11-28 00:57

    This answer is applicable to .NET Core only!

    Typing dotnet --version in your terminal of choice will print out the version of the .NET Core SDK in use.

    Learn more about the dotnet command here.

    0 讨论(0)
  • 2020-11-28 01:00

    .NET Version Detector is a GUI utility that displays which of the six(!) versions of the framework are installed.

    0 讨论(0)
  • 2020-11-28 01:02

    clrver is an excellent one. Just execute it in the .NET prompt and it will list all available framework versions.

    0 讨论(0)
  • 2020-11-28 01:04

    MSDN details it here very nicely on how to check it from registry:

    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 Version entry is under the Client or Full subkey (under NDP), or under both subkeys.

    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

    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.

    Note: The last row in the above snapshot which got clipped reads On all other OS versions: 461310. I tried my level best to avoid the information getting clipped while taking the screenshot but the table was way too big.

    0 讨论(0)
  • 2020-11-28 01:04

    If you open a command prompt and type the following two commands, all framework versions that are installed on the current machine will be listed (each one is stored in a separate directory within this directory).

    cd %systemroot%\Microsoft.NET\Framework
    
    dir /A:D
    
    0 讨论(0)
提交回复
热议问题