From 7feefb35d45c37cfa5e8df53906ef621d6eac16c Mon Sep 17 00:00:00 2001 From: Mike Corsaro Date: Tue, 23 Apr 2024 11:53:02 -0700 Subject: [PATCH 1/2] [Windows] Use correct build version check Windows 11 version isn't actually 11.*, it's 10.0.21996 --- src/Essentials/src/Connectivity/Connectivity.uwp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Essentials/src/Connectivity/Connectivity.uwp.cs b/src/Essentials/src/Connectivity/Connectivity.uwp.cs index 3a1c045f7440..eb95b8fdcbc9 100644 --- a/src/Essentials/src/Connectivity/Connectivity.uwp.cs +++ b/src/Essentials/src/Connectivity/Connectivity.uwp.cs @@ -21,7 +21,7 @@ public NetworkAccess NetworkAccess { get { - if (OperatingSystem.IsWindowsVersionAtLeast(11)) + if (OperatingSystem.IsWindowsVersionAtLeast(10, 0, 21996, 0)) { var profile = NetworkInformation.GetInternetConnectionProfile(); if (profile == null) From 665b646b552406caf5f06a7609bc508475af399b Mon Sep 17 00:00:00 2001 From: Mike Corsaro Date: Tue, 23 Apr 2024 14:03:11 -0700 Subject: [PATCH 2/2] Update Connectivity.uwp.cs --- src/Essentials/src/Connectivity/Connectivity.uwp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Essentials/src/Connectivity/Connectivity.uwp.cs b/src/Essentials/src/Connectivity/Connectivity.uwp.cs index eb95b8fdcbc9..fe8f8360d668 100644 --- a/src/Essentials/src/Connectivity/Connectivity.uwp.cs +++ b/src/Essentials/src/Connectivity/Connectivity.uwp.cs @@ -21,7 +21,7 @@ public NetworkAccess NetworkAccess { get { - if (OperatingSystem.IsWindowsVersionAtLeast(10, 0, 21996, 0)) + if (OperatingSystem.IsWindowsVersionAtLeast(10, 0, 22000, 0)) { var profile = NetworkInformation.GetInternetConnectionProfile(); if (profile == null)