Win10版本号区分
版本号 | 内部版本号 | UniversalApiContract | |
首个正式版 | 1507 | 10240 | 1 |
首个重大更新 | 1511 | 10586 | 2 |
一周年更新 Anniversary Update | 1607 | 14393 | 3 |
创意者更新 Creators Update | 1703 | 15063 | 4 |
秋季创意者更新 Fall Creators Update | 1709 | 16299 | 5 |
四月更新版 April Update | 1803 | 17134 | 6 |
-- | 1809 | 17763 | 7 |
-- | 1903 | 18362 | 8 |
-- | 1909 | 18363 | 9 |
五月更新版 | 2004 | 19042 | 10 |
命令行输入 winver,即可查看当前系统版本号
附上代码:
public class WindowsVersionHelper { //1507 First Release public static Boolean Windows10Build10240 => ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 1, 0); //1511 First Update public static Boolean Windows10Build10586 => ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 2, 0); //1607 Anniversary Edition public static Boolean Windows10Build14393 => ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 3, 0); //1703 Creators Update public static Boolean Windows10Build15063 => ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 4, 0); //1709 Fall Creators Update public static Boolean Windows10Build16299 => ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 5, 0); //1803 public static Boolean Windows10Build17134 => ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 6, 0); //1809 public static Boolean Windows10Build17763 => ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 7, 0); //1903 public static Boolean Windows10Build18362 => ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 8, 0); //1909 public static Boolean Windows10Build18363 => ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 9, 0); }