user3477026 user3477026 - 1 year ago 100
C# Question

Windows 10 RTM OSVersion not returning what I expect

When call Windows 10 version with:


Return this

enter image description here

Windows 8 and 8.1 version return 6.2 not 6.3 WTF??!

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

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

Answer Source

It's not a bug, it's in 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.

What do you need the Windows version for anyway?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download