Windows 10 RTM OSVersion未返回我期望的结果 [英] Windows 10 RTM OSVersion not returning what I expect

查看:113
本文介绍了Windows 10 RTM OSVersion未返回我期望的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用以下命令调用Windows 10版本时:

When call Windows 10 version with:

Environment.OSVersion.ToString()

返回此

Windows 8和8.1版本返回6.2而不是6.3吗?!

Windows 8 and 8.1 version return 6.2 not 6.3 ?!

Im使用Windows 10 RTM(使用Windows Update从Insider升级)VS 2015 RC和.Net 4.6

Im using Windows 10 RTM (upgrade from Insider with windows update) VS 2015 RC and .Net 4.6

现在我需要获取正确的Windows版本,是否有解决方案?

Now i need to get the correct version of windows, any solution?

推荐答案

这不是错误,它在MSDN中:

It's not a bug, it's in MSDN:


操作系统版本

Windows 10 Insider Preview    10.0*
Windows Server Technical Preview    10.0*
Windows 8.1 6.3*

*:对于已针对Windows 8.1表现的应用程序或Windows 10 Insi预览。 未在Windows 8.1或Windows 10 Insider Preview中显示的应用程序将返回Windows 8 OS版本值(6.2)。要显示适用于Windows 8.1或Windows 10 Insider Preview的应用程序,请参考将您的应用程序定位到Windows

*: For applications that have been manifested for Windows 8.1 or Windows 10 Insider Preview. Applications not manifested for Windows 8.1 or Windows 10 Insider Preview will return the Windows 8 OS version value (6.2). To manifest your applications for Windows 8.1 or Windows 10 Insider Preview, refer to Targeting your application for Windows.

您仍然需要Windows版本吗?

What do you need the Windows version for anyway?

这篇关于Windows 10 RTM OSVersion未返回我期望的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆