Skip to content

Commit

Permalink
Fix breakage.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Aug 10, 2023
1 parent 38771ad commit d2e181a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/dotnet-linker/ApplyPreserveAttributeBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ protected void PreserveType (TypeDefinition type, CustomAttribute preserveAttrib
protected void PreserveType (TypeDefinition type, bool allMembers)
{
Annotations.Mark (type);
if (allMembers)
Annotations.SetPreserve (type, TypePreserve.All);
AddDynamicDependencyAttribute (type, allMembers);
}

Expand Down

0 comments on commit d2e181a

Please sign in to comment.