tags:

views:

49

answers:

1

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

Thanks

+6  A: 

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
Thanks - Can I do this from the control panel somehow?
ChloeRadshaw
.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 Hollebrandse
"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
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