Skip to content

Commit 4106394

Browse files
committed
Add GetWindowsBuildVersion
1 parent 025ad4e commit 4106394

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Windows.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ internal static Version GetWindowsVersionObject()
171171

172172
internal static uint GetWindowsVersion() => (uint)GetWindowsVersionObject().Major;
173173
internal static uint GetWindowsMinorVersion() => (uint)GetWindowsVersionObject().Minor;
174+
internal static uint GetWindowsBuildVersion() => (uint)GetWindowsVersionObject().Build;
174175

175176
internal static bool IsWindowsVersionOrLater(int major, int minor, int build = -1)
176177
{

0 commit comments

Comments
 (0)