From e15f0c216e8fb32fd5d1f51169889068d7be80cc Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 21 Mar 2024 13:15:35 +0100 Subject: [PATCH] [dotnet] Don't suppress trimmer warnings anymore when 'TrimMode=full' is set. --- dotnet/targets/Xamarin.Shared.Sdk.props | 1 - dotnet/targets/Xamarin.Shared.Sdk.targets | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.props b/dotnet/targets/Xamarin.Shared.Sdk.props index acb10624cce7..85b2e041aa36 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.props +++ b/dotnet/targets/Xamarin.Shared.Sdk.props @@ -47,7 +47,6 @@ --> <_OriginalSuppressTrimAnalysisWarnings>$(SuppressTrimAnalysisWarnings) true - true $(AfterMicrosoftNETSdkTargets);$(MSBuildThisFileDirectory)Microsoft.$(_PlatformName).Sdk.targets diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index ed6f88792f80..b8e301ae2c5a 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -526,6 +526,10 @@ true + + false + false + <_CustomLinkerOptionsFile>$([System.IO.Path]::GetFullPath('$(IntermediateOutputPath)custom-linker-options.txt')) <_CustomLinkerOptionsFile Condition="'$(BuildSessionId)' != ''">$(IntermediateOutputPath)custom-linker-options.txt