What is the best to determine the Microsoft OS that is hosting your ASP.NET application using the System.Environment.OSVersion
namespace
I need an example for Windows XP, Windows Server 2003 and Windows Vista
Here is what I am trying to accomplish using pseudocode
switch(/* Condition for determining OS */)
{
case "WindowsXP":
//Do Windows XP stuff
break;
case "Windows Server 2003":
//Do Windows Server 2003 stuff
break;
case "Windows Vista":
//Do Windows Vista stuff
break;
}