Skip to content

Commit 9da102b

Browse files
Emit IsAotCompatible attribute metadata (#118008)
This could be used for #117712 and is a useful piece of metadata. I was going back and forth between placing this here or somewhere in the dotnet/sdk repo but since this is related to the analyzer, it feels okay here too.
1 parent 2a7789d commit 9da102b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Copyright (c) .NET Foundation. All rights reserved.
2525
<_Parameter1>IsTrimmable</_Parameter1>
2626
<_Parameter2>True</_Parameter2>
2727
</AssemblyAttribute>
28+
<AssemblyAttribute Condition="'$(IsAotCompatible)' == 'true'" Include="System.Reflection.AssemblyMetadata">
29+
<_Parameter1>IsAotCompatible</_Parameter1>
30+
<_Parameter2>True</_Parameter2>
31+
</AssemblyAttribute>
2832
</ItemGroup>
2933

3034
<!-- We disable features for trimmed apps here so that the feature

0 commit comments

Comments
 (0)