如何以编程方式检测 Windows Phone 8.1 操作系统版本?

如何以编程方式检测 Windows Phone 8.1 操作系统版本?

问题描述:

标题中的问题不是真正的问题.我浏览了许多网站和博客,了解到 Environment.OSVersion 使用我们的应用程序为您提供手机的当前操作系统版本.但问题是,Environment 类下没有 OSVersion.请参阅屏幕截图以更好地理解.

The question in title is not the real problem. I went through many sites and blogs and go to know that Environment.OSVersion gives you the current OS version of the phone using our app. But the problem is, There is no OSVersion under the class Environment. Please refer the screenshot for better understanding.

我的问题是为什么我看不到 Environment 类下的 OSVersion 属性?我错过了什么吗?

My question why I am not able to see the OSVersion property under Environment class? Am I missing something?

您无法在 Windows 8.1 中获取操作系统版本.检查以下链接是否相同 - https://social.msdn.microsoft.com/Forums/windowsapps/en-US/2b455331-3bad-4d26-b615-a59d0e05d0dd/how-to-get-os-version-on-window-phone?forum=wpdevelop

You cannot get the OS Version in Windows 8.1 .Check the following link for the same - https://social.msdn.microsoft.com/Forums/windowsapps/en-US/2b455331-3bad-4d26-b615-a59d0e05d0dd/how-to-get-os-version-on-window-phone?forum=wpdevelop