C# Code for finding version:
using System;
class Version
{
public static void Main()
{
Console.WriteLine();
Console.WriteLine(".Net Framework Version {0}",Environment.Version.ToString());
}
}
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.
Subscribe to:
Post Comments (Atom)
1 comment:
You should know that the Framework version is not equal to the CLR version. Regarding this fact your corresponding C# code isn't correct.
Post a Comment