2

Possible Duplicate:
How to get OS version number?
How to get the current OS version of Windows Phone?

I have a question:

is it possible to check a wp7 device's OS version? I want to know, because I'm creating a sort of distributing app, where users, based on their OS version, and privileges can connect to the BETA marketplace and download certain apps from there. So if someone doesn't have a compatable OS, they get a message notifying them of this and locking certain apps. Is this even possible, because the OS version is not found in the Microsoft.Phone.Info.DeviceStatus class, only firm- and hardware versions. Any suggestions?

Community
  • 1
  • 1
GeekPeek
  • 1,615
  • 1
  • 20
  • 34

2 Answers2

4

You can also get the Windows Phone Operating System Version number from Environment.OSVersion.

string OSVersion = Environment.OSVersion.Version.ToString();
Saurabh
  • 1,055
  • 14
  • 38
2

Just to elaborate on Saurabh's answer - you can find a useful information such as an example and usage information about the API here:

Environment.OSVersion

Jamie Keeling
  • 9,806
  • 17
  • 65
  • 102
  • @GeekPeek Press the "Other Versions" tab at the top of the page to be Silverlight instead of .NET Framework 4. Then you'll see that it is indeed support on the Windows Phone OS. I've edited my link to make it specific in this case. – Jamie Keeling Jan 26 '12 at 20:43