Closed
Description
dotnet/sdk#16865 adds a property (available in preview4) TrimmerDefaultAction
which can be set to link
to enable "LinkAll" behavior. Consider not suppressing trim analysis warnings in this case to warn users about possible issues.
This can be done by adding a condition to https://github.com/xamarin/xamarin-android/blob/97b3cc0eed4fadc4289c5d4ff8ea2d000f7828c5/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets#L56 assuming those targets are imported after the project file but before the .NET illink targets (so that it takes into account any user-set value for TrimmerDefaultAction
):
<SuppressTrimAnalysisWarnings Condition="'$(SuppressTrimAnalysisWarnings)' == '' And '$(TrimmerDefaultAction)' != 'link'">true</SuppressTrimAnalysisWarnings>
Metadata
Metadata
Assignees
Labels
No labels