4

Is there something available that tells me what .NET version I am using and whether it is .NET 2.0 SP1?

Thanks

Josh Lee
  • 171,072
  • 38
  • 269
  • 275
Jack Kada
  • 24,474
  • 29
  • 82
  • 106

1 Answers1

7

You can use Environment.Version to find the version of the CLR you are running on.

This can be checked against the list of framework version numbers. For .NET 2.0 SP1 you'd be looking to match 2.0.50727.1433.

Greg Beech
  • 133,383
  • 43
  • 204
  • 250
  • Thanks - Can I do this from the control panel somehow? – Jack Kada Jan 29 '10 at 10:05
  • 1
    .NET framework versions can run side-by-side, so there will not be just one setting that tells you. Look in the `Windows\Microsoft.NET\Framework` directory, and you will see a list with relevant versions that are installed on the machine. – Wim Jan 29 '10 at 10:12
  • "To determine which versions of the .NET Framework are installed, locate the %systemroot%\Microsoft.NET\Framework folder. To open this folder, you can paste this address into a Windows Explorer address bar." – Manish Jan 29 '10 at 10:16
  • Chloe - Ah, I assumed you meant which version you were using (as in running on) rather than which versions are installed. As Wim says there can be more than one version. See the section named "How to determine which versions of the .NET Framework are installed" in the list of framework version numbers I linked to above which gives more information about this. – Greg Beech Jan 29 '10 at 10:17