0
I want to get a value of what system you’re using, like:
Windows 7 or
Windows 8 or
Windows 8.1 or
Windows 10
How can I do this in C# ? I’ve tried System.Environment.OSVersion
doesn’t work right.
I tried that answer here and it doesn’t work. I’m using Windows10, he returns as Windows8.
I have tried in stackoverflow "English", none of them did not work with this link.
Have you read the note of the answer accepted in Soen? It seems to explain why detects as windows 8 even running the 10.
– user28595
Important note: if your Executable Assembly manifest doesn’t explicitly state that your exe Assembly is compatible with Windows 8.1 and Windows 10.0, System.Environment.Osversion will Return Windows 8.0 version ?! which is 6.2, Instead of 6.3 and 10.0!! Source: here first comment.*
– user28595
In any case, I leave another alternative: https://stackoverflow.com/a/31885836/5524514
– user28595
@Article the link you sent works, in case someone changes the value in the record, iron.
– Matheus Miranda
If someone changes that key there, will close much more than your application :p
– user28595