1

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

amod
  • 4,190
  • 10
  • 49
  • 75

2 Answers2

2

Have you tried simply: Environment.Version

Marc Gravell
  • 1,026,079
  • 266
  • 2,566
  • 2,900
1

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?

Community
  • 1
  • 1
Simon Mourier
  • 132,049
  • 21
  • 248
  • 298
  • i dont want to use any code from c# what i want is any exe or registry key value from where i could get the same. – amod Jun 13 '11 at 06:43
  • 1
    @amod0017 - your question is not clear about that, as you said "dll/api". Please edit your question, the language your using, etc. – Simon Mourier Jun 13 '11 at 08:26
  • @simon i have seen the answer. what i require is clrver rather than the .net framework version. – amod Jun 14 '11 at 09:32