Skip to content

Commit

Permalink
[illink] Use @(LinkDescription) items (#5294)
Browse files Browse the repository at this point in the history
Context: #5035 (comment)
Fixes: #5288

Use the user custom linker files with ILLink on .NET 6, which expects
the `@(TrimmerRootDescriptor)` item group:

https://github.com/dotnet/sdk/blob/2fae2fa539e861fcf7b27c3b01e3403c6ab7bc34/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ILLink.targets#L120

It should fix `CustomLinkDescriptionPreserve` test as well.
  • Loading branch information
radekdoulik authored Nov 16, 2020
1 parent 9fdf6c4 commit 286a0aa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ This file contains the .NET 5-specific targets to customize ILLink
<TrimmerRootDescriptor
Condition=" '@(ResolvedFileToPublish->Count())' != '0' and '%(Filename)' != '' "
Include="@(_PreserveLists)" />
<TrimmerRootDescriptor Include="@(LinkDescription)" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit 286a0aa

Please sign in to comment.