gpt4 book ai didi

c# - Windows 10 RTM OSVersion 没有返回我所期望的

转载 作者:可可西里 更新时间:2023-11-01 12:36:20 26 4
gpt4 key购买 nike

当调用 Windows 10 版本时:

Environment.OSVersion.ToString()

返回这个

enter image description here

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

我正在使用 Windows 10 RTM(使用 Windows 更新从 Insider 升级)VS 2015 RC 和 .Net 4.6

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

最佳答案

这不是错误,它在 MSDN 中:

Operating System Version

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

*: 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 版本做什么?

关于c# - Windows 10 RTM OSVersion 没有返回我所期望的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31520192/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com