int osVerMinor = osVer.Minor;\r
NaGet.InteropServices.WindowsVersion.VersionInfo? verInfo = NaGet.InteropServices.WindowsVersion.GetVersionInfo();\r
if (verInfo.HasValue) {\r
- osVerMinor = (int) verInfo.Value.MinorVersion;\r
+ if (verInfo.Value.MajorVersion == 10) {\r
+ return PlatformOSType.WIN10;\r
+ } else {\r
+ osVerMinor = (int) verInfo.Value.MinorVersion;\r
+ }\r
}\r
switch (osVerMinor) {\r
case 0:\r
return PlatformOSType.WIN8;\r
case 3:\r
return PlatformOSType.WIN8_1;\r
- case 4:\r
- return PlatformOSType.WIN10;\r
}\r
}\r
break;\r