I tried using Environment.Version.ToString() to determine which .NET platform on the target computer is being used, but it says that I am using .NET 2.0 when version 4.0 is installed.
How to determine which version of the .NET Framework is running on the target machine?
source share