Skip to content

Commit

Permalink
[Xamarin.Android.Build.Tasks] use %(TrimmerRootAssembly.RootMode) All (
Browse files Browse the repository at this point in the history
…xamarin#7651)

Context: dotnet/linker#3165 (comment)

In 2a10e96, I added a workaround for new linker behavior.

It turns out I should have used `All` instead of `Library` for now.

The original issue is still under discussion.
  • Loading branch information
jonathanpeppers committed Dec 21, 2022
1 parent 2a10e96 commit ec712da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ This file contains the .NET 5-specific targets to customize ILLink

<Target Name="_FixRootAssembly" AfterTargets="PrepareForILLink">
<ItemGroup>
<TrimmerRootAssembly Update="@(TrimmerRootAssembly)" Condition=" '%(RootMode)' == 'EntryPoint' " RootMode="Library" />
<TrimmerRootAssembly Update="@(TrimmerRootAssembly)" Condition=" '%(RootMode)' == 'EntryPoint' " RootMode="All" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit ec712da

Please sign in to comment.