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

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

    To just get the installed version(s) at the command line, I recommend using net-version.

    • It's just a single binary.
    • It uses the guidelines provided my Microsoft to get version information.
    • It doesn't require the SDK to be installed.
    • Or the Visual Studio command prompt.
    • It doesn't require you to use regedit and hunt down registry keys yourself. You can even pipe the output in a command line tool if you need to.

    Source code is available on github.com

    Full disclosure: I created this tool myself out of frustration.

提交回复
热议问题