Skip to content

Commit 5905618

Browse files
committed
Add IsWindows10RS1OrBetter
1 parent 9ba8690 commit 5905618

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/ManagedShell.Common/Helpers/EnvironmentHelper.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ public static bool IsWindows10OrBetter
8383
}
8484
}
8585

86+
public static bool IsWindows10RS1OrBetter
87+
{
88+
get
89+
{
90+
if (osVersionMajor == 0)
91+
{
92+
getOSVersion();
93+
}
94+
95+
return (osVersionMajor >= 10 && osVersionBuild >= 14393);
96+
}
97+
}
98+
8699
public static bool IsWindows10RS4OrBetter
87100
{
88101
get

0 commit comments

Comments
 (0)