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

后端 未结 19 2464
我寻月下人不归
我寻月下人不归 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 01:10

    There is an easier way to get the exact version .NET version installed on your machine from a cmd prompt. Just follow the following instructions;

    1. Open the command prompt (i.e Windows + R → type "cmd").
    2. Type the following command, all on one line:

    reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"

    (This will list all the .NET versions.)

    1. If you want to check the latest .NET 4 version.
    2. Type following instruction, on a single line:

    reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full" /v version

    Please find the attached image below to see how it is shown.

提交回复
热议问题