Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dotnet/targets/Xamarin.Shared.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@
<_AggressiveAttributeTrimming Condition="'$(_UseNativeAot)' == 'true'">false</_AggressiveAttributeTrimming>
<_AggressiveAttributeTrimming Condition="'$(_AggressiveAttributeTrimming)' == ''">true</_AggressiveAttributeTrimming>

<!--
With NativeAOT we want to prevent ILLink from rewriting unreachable bodies so that the NativeAOT toolchain can do its own analysis on the original
method bodies. This ensures that NativeAOT can find backing fields for compiler-generated properties.
-->
<_TrimmerUnreachableBodies Condition="'$(_UseNativeAot)' == 'true'">false</_TrimmerUnreachableBodies>

<!-- This property is also defined in Xamarin.Shared.props, but that file is imported too late for us to use the definition, and we can't remove it from Xamarin.Shared.props quite yet, because that would break legacy
(in other words: once we drop support for legacy Xamarin, we can remove the other definition) -->
<_CanOutputAppBundle Condition="'$(_CanOutputAppBundle)' == '' And ('$(OutputType)' == 'Exe' Or '$(IsAppExtension)' == 'true')">true</_CanOutputAppBundle>
Expand Down
Loading