Click here to Skip to main content
15,885,978 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

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,
Bankole
Posted

1 solution

You can get the Windows Phone Operating System Version number from Environment.OSVersion. Here is C# code:
C#
string OSVersion = Environment.OSVersion.Version.ToString();
 
Share this answer
 
v2
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900