Dev-Picayune

picayune: of little value or importance

Checking the CLR Version in C#.NET

And now for something completely unrelated to what I have previously been blogging about, I needed to write a quick application that showed the current .NET CLR version that was used to run an application. To get the value for the CLR version you just need to use this static method:

System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion()


Now aren’t you glad I documented that?

Technorati Tags: ,

1 Comment so far

  1. Ed September 5th, 2007 11:59 am

    FYI

    It’s System.Runtime.InteropS ervices.RuntimeEnvironm ent.GetRuntimeVersion()

Leave a reply

For spam filtering purposes, please copy the number 4357 to the field below: