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

System.Private.Windows.OsVersion

static class OsVersion
namespace System.Private.Windows { internal static class OsVersion { public static bool IsWindows10_1507OrGreater(); public static bool IsWindows10_1607OrGreater(); public static bool IsWindows10_1703OrGreater(); public static bool IsWindows10_1709OrGreater(); public static bool IsWindows10_18030rGreater(); public static bool IsWindows11_OrGreater(); public static bool IsWindows11_22H2OrGreater(); public static bool IsWindows8_1OrGreater(); public static bool IsWindows8OrGreater(); } }