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

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

    For the version of the framework that is installed, it varies depending on which service packs and hotfixes you have installed. Take a look at this MSDN page for more details. It suggests looking in %systemroot%\Microsoft.NET\Framework to get the version.

    Environment.Version will programmatically give you the version of the CLR.

    Note that this is the version of the CLR, and not necessarily the same as the latest version of the framework you have installed (.NET 3.0 and 3.5 both use v2 of the CLR).

提交回复
热议问题