I\'m programming a Metro Style App with C# and the Visual Studio 11 Beta. Now I want to get the OS-Version of the OS. How can I get this?
I found out how to do it in
Based on the answers of other posters - there is no API to test for OS version, but there will be APIs to query for the version of a specific type. This means that you might not be able to tell the version of future releases of Windows with your current code, but if you keep updating your code - you could determine the OS version based on whether a specific type is available. For now you would assume to be using the current version of Windows 8.
Also, I have not tried, but it is possible that you could get it by doing interop with JavaScript and parsing "navigator.appVersion".