KEMBAR78
[xabt] remove `$(AndroidStripILAfterAOT)` by jonathanpeppers · Pull Request #10204 · dotnet/android · GitHub
Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Fixes: #9577

Partially reverts 82a4092.

We introduced an "experimental" property $(AndroidStripILAfterAOT) in .NET 8, which has a few flaws as mentioned in #9577. I've seen this come up on a couple customer issues, and the solution was to stop using the feature...

Since, this feature is only available for Mono (not CoreCLR or NativeAOT), it feels like we should remove it from the codebase for now. We could bring it back in the future, if we also solved #9577.

Fixes: #9577

Partially reverts 82a4092.

We introduced an "experimental" property `$(AndroidStripILAfterAOT)`
in .NET 8, which has a few flaws as mentioned in #9577. I've seen this
come up on a couple customer issues, and the solution was to stop
using the feature...

Since, this feature is only available for Mono (not CoreCLR or
NativeAOT), it feels like we should remove it from the codebase for
now. We could bring it back in the future, if we also solved #9577.
LdName="$(_LdName)"
LdFlags="$(_LdFlags)"
CollectTrimmingEligibleMethods="$(AndroidStripILAfterAOT)"
CollectTrimmingEligibleMethods="$(_AndroidCollectTrimmingEligibleMethods)"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a private property, $(_AndroidCollectTrimmingEligibleMethods), if someone wants to experiment with this in the future. This way it's possible to set it.

@jonathanpeppers jonathanpeppers marked this pull request as ready for review June 16, 2025 17:36
@jonathanpeppers jonathanpeppers enabled auto-merge (squash) June 16, 2025 17:46
@jonathanpeppers jonathanpeppers merged commit 9c5fb61 into main Jun 16, 2025
59 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/remove-AndroidStripILAfterAOT branch June 16, 2025 19:51
@github-actions github-actions bot locked and limited conversation to collaborators Jul 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

$(AndroidStripILAfterAOT)=true tries to overwrite files it shouldn't

1 participant