From d68196c98f1f7477cef3a9cc2a6eb0c3428d6b27 Mon Sep 17 00:00:00 2001 From: Manodasan Wignarajah Date: Thu, 26 May 2022 17:39:55 -0700 Subject: [PATCH] Add Supported OS version to new interop API (#1197) --- src/cswinrt/strings/ComInteropHelpers.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cswinrt/strings/ComInteropHelpers.cs b/src/cswinrt/strings/ComInteropHelpers.cs index 2fcab2d7d..e8ef524f7 100644 --- a/src/cswinrt/strings/ComInteropHelpers.cs +++ b/src/cswinrt/strings/ComInteropHelpers.cs @@ -426,6 +426,9 @@ public static UIViewSettings GetForWindow(IntPtr hwnd) namespace Windows.Graphics.Display { #if UAC_VERSION_15 +#if NET + [global::System.Runtime.Versioning.SupportedOSPlatform("Windows10.0.22621.0")] +#endif #if EMBED internal #else