Click here to Skip to main content
13,146,402 members (44,929 online)
Rate this:
Please Sign up or sign in to vote.

I'm building a Windows Phone application and my client has given me a list of languages that he would like the App to be localized for.

The problem is that some of those languages are not supported by Windows Phone and I then decided to check out the list of supported langauges which is available
here. I noticed that there are two OS option for Windows Phone, i.e. 7.0 and 7.1 but during development I am not sure of how to check for which OS the phone is running so that I know which list of languages to supply to the user.

I'd like to know how to check if the Windows Phone OS is 7.0 or 7.1 (I'm assuming that his caters for later OS versions that might have come after the list was created)

Many thanks,
Posted 23-Jun-12 19:56pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can get the Windows Phone Operating System Version number from Environment.OSVersion. Here is C# code:
string OSVersion = Environment.OSVersion.Version.ToString();
banxman 24-Jun-12 2:20am
Thanks a lot.
I did that initailly but maybe I'm confused about what the OS version is versus the emulator version versus the SDK version because when I started development, I was asked to choose between targeting 7.0 and 7.5 and I chose 7.5 but after executing the code you asked, the OS version returned was 7.10.xxxx

I am quite confused. Any ideas please?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 24 Jun 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100