Skip to content

[xabt] remove $(AndroidStripILAfterAOT) #10204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2025

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.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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