问题
Is there something available that tells me what .NET version I am using and whether it is .NET 2.0 SP1?
Thanks
回答1:
You can use Environment.Version to find the version of the CLR you are running on.
This can be checked against the list of framework version numbers. For .NET 2.0 SP1 you'd be looking to match 2.0.50727.1433.
来源:https://stackoverflow.com/questions/2161119/how-do-i-find-out-what-clr-i-am-using