I've just about finished the upgrade to .NET 2 for the blog software and the removal of proprietary E3 libraries. I want to make sure there is no downtime, but I have to ask the hosting company to change the .NET version of my site. In order to provide "a smooth and orderly transition" between versions, the site would detect which version of .NET is running currently and then redirect to the old code if .NET 1.1 and use the new code as soon as the change takes place. To that end I need to get the current .NET version number. This can be obtained using:
The Environment object has some other useful methods/properties for identifying operating system etc. which are detailed in this article.