I have a app.manifest
with the Windows 10 GUID
and even with that, my .net 4.0 project can't detect my current Windows version. (10.0.10586)
It detects as 6.2.9200
, the W8 version, I believe.
I'm using Environment.OSVersion.Version
inside a library project that also has a app.manifest
, both with all the `GUID's.
How can I detect the system's version without reading from a registry or a external dll?
Edit
Oh, it looks like the Evironment.OSVersion
uses GetVersionEx
and it's deprecated. I wonder with .net 4.5 uses the same method.