<PackageReference Include="System.Drawing.Common" Version="9.0.8" />

OsVersion

static class OsVersion
public static bool IsWindows10_1507OrGreater()

Is Windows 10 first release or later. (Threshold 1, build 10240, version 1507)

public static bool IsWindows10_1607OrGreater()

Is Windows 10 Anniversary Update or later. (Redstone 1, build 14393, version 1607)

public static bool IsWindows10_1703OrGreater()

Is Windows 10 Creators Update or later. (Redstone 2, build 15063, version 1703)

public static bool IsWindows10_1709OrGreater()

Is Windows 10 Creators Update or later. (Redstone 3, build 16299, version 1709)

public static bool IsWindows10_18030rGreater()

Is Windows 10 Creators Update or later. (Redstone 4, build 17134, version 1803)

public static bool IsWindows11_22H2OrGreater()

Is this Windows 11 version 22H2 or greater? The underlying API does not read supportedOs from the manifest, it returns the actual version.

public static bool IsWindows11_OrGreater()

Is this Windows 11 public preview or later? The underlying API does not read supportedOs from the manifest, it returns the actual version.

public static bool IsWindows8_1OrGreater()

Is Windows 8.1 or later.

public static bool IsWindows8OrGreater()

Is Windows 8 or later.