XNA Runtime Game Platform Detection
4 answers
Environment.OSVersion is what you want. In the MSDN doc, you should use it like:
OperatingSystem os = Environment.OSVersion;
PlatformID pid = os.Platform;
switch (pid)
{
//Do whatever
}
+3
source to share