From 7f6318495c0b1b0418055fc08c92df358cd7e58d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 20 Jul 2024 14:02:24 -0700 Subject: [PATCH] Enable building .dll if both 'CustomNativeMain' and 'NativeLib' are set (#103504) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Build a .dll if 'CustomNativeMain' is set * Switch on 'NativeLib' instead for .exe args * Actually output a .dll if 'NativeLib' is set --------- Co-authored-by: Jan Kotas Co-authored-by: Michal Strehovský --- .../Microsoft.NETCore.Native.Windows.targets | 5 ++--- .../BuildIntegration/Microsoft.NETCore.Native.targets | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Windows.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Windows.targets index 7be88b5fde9..39d68812bf2 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Windows.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Windows.targets @@ -92,12 +92,11 @@ The .NET Foundation licenses this file to you under the MIT license. - - + + - diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets index 6e74ee24ca8..9f210a00880 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets @@ -62,7 +62,7 @@ The .NET Foundation licenses this file to you under the MIT license. $(NativeObjectExt) - true + true .exe