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

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

    Per Microsoft in powershell:

    Get-ChildItem "hklm:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\" | Get-ItemPropertyValue -Name Release | % { $_ -ge 394802 }
    

    See the table at this link to get the DWORD value to search for specific versions:

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

    0 讨论(0)
提交回复
热议问题