diff --git a/src/tests/nativeaot/SmokeTests/ComWrappers/ComWrappers.csproj b/src/tests/nativeaot/SmokeTests/ComWrappers/ComWrappers.csproj
index bf21e8f49d70e..7689ad3fbd277 100644
--- a/src/tests/nativeaot/SmokeTests/ComWrappers/ComWrappers.csproj
+++ b/src/tests/nativeaot/SmokeTests/ComWrappers/ComWrappers.csproj
@@ -3,6 +3,9 @@
true
true
+
+ $(NoWarn);IL2050
+
true