commit 349a9cbbf10ea58ebba4be45535e242c82cb3087 parent 9a5859c3cd965260ab25364f3f1e0028e933f60a Author: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com> Date: Mon, 19 Dec 2022 13:24:46 -0800 Suppress additional warning CA1416 (#2784) Diffstat:
| M | src/PowerShell/Microsoft.WinGet.Client/Helpers/ComObjectFactory.cs | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/PowerShell/Microsoft.WinGet.Client/Helpers/ComObjectFactory.cs b/src/PowerShell/Microsoft.WinGet.Client/Helpers/ComObjectFactory.cs @@ -109,6 +109,7 @@ namespace Microsoft.WinGet.Client.Factories return Create<PackageMatchFilter>(PackageMatchFilterType, PackageMatchFilterIid); } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Interoperability", "CA1416:Validate platform compatibility", Justification = "COM only usage.")] private static T Create<T>(Type type, in Guid iid) { object instance = null;