Is there a way to determine the .NET Framework version from the command line?

前端 未结 7 961
北海茫月
北海茫月 2020-12-05 04:40

To troubleshoot an installation, sometimes I just want a quick answer to what version of .NET is installed.

Is there a way to determine the .NET Framework version on

相关标签:
7条回答
  • 2020-12-05 05:28
    reg query "HKLM\Software\Microsoft\NET Framework Setup\NDP" /s /v version | findstr /i version | sort /+26 /r
    

    The top entry is the latest version of the framework installed.

    Note: This doesn't work with v1.x of the framework.

    Update: I missed the comment that you are looking for something to tell your dad over the phone. If that's the case, the command above is probably not the best approach for you. You might be better off just telling your dad to open Windows Explorer and navigate him to the .NET Framework dir and telling you the numbers in there.

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