From f74138f056a6504b9df7acecdc0e0f52d9585b5c Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Mon, 24 Apr 2023 20:46:39 -0700 Subject: [PATCH] Enable ComWrappers for NativeAOT on non-Windows (#85000) --- src/coreclr/nativeaot/Directory.Build.props | 3 +-- src/libraries/tests.proj | 4 ---- src/tests/Common/CoreCLRTestLibrary/PlatformDetection.cs | 1 + src/tests/Interop/COM/ComWrappers/API/Program.cs | 1 + src/tests/issues.targets | 6 ------ 5 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/coreclr/nativeaot/Directory.Build.props b/src/coreclr/nativeaot/Directory.Build.props index 799089f2af88d..7fdf7430ac799 100644 --- a/src/coreclr/nativeaot/Directory.Build.props +++ b/src/coreclr/nativeaot/Directory.Build.props @@ -55,8 +55,7 @@ FEATURE_COMINTEROP;$(DefineConstants) - false - true + true false diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 29886d166cd76..ec83814b18d8e 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -453,10 +453,6 @@ - - - diff --git a/src/tests/Common/CoreCLRTestLibrary/PlatformDetection.cs b/src/tests/Common/CoreCLRTestLibrary/PlatformDetection.cs index 2671a3e04c80e..b74bedf317683 100644 --- a/src/tests/Common/CoreCLRTestLibrary/PlatformDetection.cs +++ b/src/tests/Common/CoreCLRTestLibrary/PlatformDetection.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TestLibrary diff --git a/src/tests/Interop/COM/ComWrappers/API/Program.cs b/src/tests/Interop/COM/ComWrappers/API/Program.cs index 3c1fbc83b1c5f..9543a1ce4348b 100644 --- a/src/tests/Interop/COM/ComWrappers/API/Program.cs +++ b/src/tests/Interop/COM/ComWrappers/API/Program.cs @@ -11,6 +11,7 @@ namespace ComWrappersTests using System.Runtime.InteropServices; using ComWrappersTests.Common; + using TestLibrary; using Xunit; class Program diff --git a/src/tests/issues.targets b/src/tests/issues.targets index 68a34b15cdc1d..d4e21b611155a 100644 --- a/src/tests/issues.targets +++ b/src/tests/issues.targets @@ -982,12 +982,6 @@ https://github.com/dotnet/runtimelab/issues/155: SAFEARRAY - - https://github.com/dotnet/runtime/issues/74620 - - - https://github.com/dotnet/runtime/issues/74620 - https://github.com/dotnet/runtime/issues/74620