From 9f5177fdd06f53817773db26831758895ef09597 Mon Sep 17 00:00:00 2001 From: Ryan Fu Date: Mon, 19 Dec 2022 13:14:51 -0800 Subject: [PATCH] suppress warning --- .../Microsoft.WinGet.Client/Helpers/ComObjectFactory.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PowerShell/Microsoft.WinGet.Client/Helpers/ComObjectFactory.cs b/src/PowerShell/Microsoft.WinGet.Client/Helpers/ComObjectFactory.cs index 9b7b44ea53..361afc4ecc 100644 --- a/src/PowerShell/Microsoft.WinGet.Client/Helpers/ComObjectFactory.cs +++ b/src/PowerShell/Microsoft.WinGet.Client/Helpers/ComObjectFactory.cs @@ -109,6 +109,7 @@ public virtual PackageMatchFilter CreatePackageMatchFilter() return Create(PackageMatchFilterType, PackageMatchFilterIid); } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Interoperability", "CA1416:Validate platform compatibility", Justification = "COM only usage.")] private static T Create(Type type, in Guid iid) { object instance = null;