-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
Lines 144 to 146 in 3be5238
| OperatingSystem ver = Environment.OSVersion; | |
| if (ver.Platform == PlatformID.Win32NT && ver.Version < new Version(10, 0, 19041, 0)) |
Environment.OSVersion is an unreliable API that reports old versions for compat purposes. It only reports the correct Win10 version if an app manifest is added. VS and the test runner have this manifest but sample apps and customer apps won't.
https://stackoverflow.com/questions/33328739/system-environment-osversion-returns-wrong-version
We're going to need a different way to check for this support. Worst case we look at the registry.