<PackageReference Include="System.Drawing.Common" Version="10.0.0-rc.2.25502.107" />

OsVersion

static class OsVersion
using System.Runtime.CompilerServices; using System.Runtime.Versioning; namespace System.Private.Windows { internal static class OsVersion { [MethodImpl(MethodImplOptions.AggressiveInlining)] [SupportedOSPlatformGuard("windows10.0.10240")] public static bool IsWindows10_1507OrGreater() { return OperatingSystem.IsWindowsVersionAtLeast(10, 0, 10240, 0); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [SupportedOSPlatformGuard("windows10.0.14393")] public static bool IsWindows10_1607OrGreater() { return OperatingSystem.IsWindowsVersionAtLeast(10, 0, 14393, 0); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [SupportedOSPlatformGuard("windows10.0.15063")] public static bool IsWindows10_1703OrGreater() { return OperatingSystem.IsWindowsVersionAtLeast(10, 0, 15063, 0); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [SupportedOSPlatformGuard("windows10.0.16299")] public static bool IsWindows10_1709OrGreater() { return OperatingSystem.IsWindowsVersionAtLeast(10, 0, 16299, 0); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [SupportedOSPlatformGuard("windows10.0.17134")] public static bool IsWindows10_18030rGreater() { return OperatingSystem.IsWindowsVersionAtLeast(10, 0, 17134, 0); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [SupportedOSPlatformGuard("windows11")] public static bool IsWindows11_OrGreater() { return OperatingSystem.IsWindowsVersionAtLeast(10, 0, 22000, 0); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [SupportedOSPlatformGuard("windows11.0.22621")] public static bool IsWindows11_22H2OrGreater() { return OperatingSystem.IsWindowsVersionAtLeast(10, 0, 22621, 0); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [SupportedOSPlatformGuard("windows8.1")] public static bool IsWindows8_1OrGreater() { return OperatingSystem.IsWindowsVersionAtLeast(6, 3, 0, 0); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [SupportedOSPlatformGuard("windows8")] public static bool IsWindows8OrGreater() { return OperatingSystem.IsWindowsVersionAtLeast(6, 2, 0, 0); } } }