Monday, August 3, 2009

How to detect installed CLR versions

In the VS.NET Command Prompt, there is a 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.




C# Code for finding version:
using System;
class Version
{
public static void Main()
{
Console.WriteLine();
Console.WriteLine(".Net Framework Version {0}",Environment.Version.ToString());
}
}

1 comment:

Linejra said...

You should know that the Framework version is not equal to the CLR version. Regarding this fact your corresponding C# code isn't correct.