How to detect installed CLR versions and how they are used…
It has been a while since I posted anything on my blog. Sorry for keeping you on hold
! I think the blog will be filled with some information shortly, since I am still overthinking all the great stuff I saw on Tech-Ed North America a couple of weeks ago (first I had to overcome the jetlag, then the weather in The Netherlands, etc. etc.
). Enough nonsense for now!
While attending a session by Scott Hanselman on everything new in .NET 4.0 he showed a wonderful small tip, not only useful for the few of us already working on Visual Studio 2010: when working in the VS.NET Command Prompt, there is a small but useful command called ‘CLRVER’. It shows all .NET versions installed on your computer. Also, as an addition to this command, you can show active runtime processes using the -all switch. Nice piece of code! Enjoy!

Well, I just tried it.
On my development machine running Windows Vista and all .NET frameworks above v2.0 installed, this command only returns that v2.05727 is installed…
Can you explain this?
Ah, when I try this command using the VS2010 command prompt, it did also return that .NET 4.0 is installed.