开发者

i want to know which .net CLR version my application is using

开发者 https://www.devze.com 2023-03-11 20:50 出处:网络
i want to know which CLR version my application is using. 开发者_如何转开发I \"dont\" want to use either clrver.exe or GetCORVersion(),GetRequestedRuntimeInfo(),GetRequestedRuntimeversion() as these

i want to know which CLR version my application is using.

开发者_如何转开发

I "dont" want to use either clrver.exe or GetCORVersion(),GetRequestedRuntimeInfo(),GetRequestedRuntimeversion() as these ways are Visual Studio specific. Is there any .net framework related exe/dll/api which will give me CLR versions since i want to use the java language to know about it and need a way which also work when framework is present but not the VS. Registry key value will be a great option. i want o/p like clrver -all


Have you tried simply: Environment.Version


Maybe the RuntimeEnvironment.GetRuntimeDirectory Method?

EDIT: If you only have access to the registry (if your program is not a .NET one), I suggest you use this SO answer: How to detect what .NET Framework versions and service packs are installed?

0

精彩评论

暂无评论...
验证码 换一张
取 消