Skip to content

Instantly share code, notes, and snippets.

@jonpryor
Created December 17, 2012 14:37
Show Gist options
  • Save jonpryor/4318734 to your computer and use it in GitHub Desktop.
Save jonpryor/4318734 to your computer and use it in GitHub Desktop.
using System;
class Test {
public static void Main ()
{
var v = Environment.OSVersion;
Console.WriteLine (" Platform: {0}", v.Platform);
Console.WriteLine (" Service Pack: {0}", v.ServicePack);
Console.WriteLine (" Version: {0}", v.Version);
Console.WriteLine ("Version String: {0}", v.VersionString);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment