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

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

    If you do this fairly frequently (as I tend to do) you can create a shortcut on your desktop as follows:

    1. Right click on the desktop and select NewShortcut.
    2. In the location field, paste this string: powershell.exe -noexit -command "gci 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | gp -name Version,Release -EA 0 | where { $_.PSChildName -match '^(?!S)\p{L}'} | select PSChildName, Version, Release" (this is from Binoj Antony's post).
    3. Hit Next. Give the shortcut a name and Finish.

    (NOTE: I am not sure if this works for 4.5, but I can confirm that it does work for 4.6, and versions prior to 4.5.)

提交回复
热议问题