-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[net11.0][NativeAOT] Hook _PrepareTrimConfiguration to fix IL3050 on Android #35094
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -306,7 +306,7 @@ | |||||
| Text="The %24(TargetFrameworkVersion) for $(ProjectName) ($(TargetFrameworkVersion)) is less than the minimum required %24(TargetFrameworkVersion) for Microsoft.Maui ($(MinTargetFrameworkVersionForMaui)). You need to increase the %24(TargetFrameworkVersion) for $(ProjectName)." /> | ||||||
| </Target> | ||||||
|
|
||||||
| <Target Name="_MauiPrepareForILLink" BeforeTargets="PrepareForILLink;_GenerateRuntimeConfigurationFilesInputCache;XamlC"> | ||||||
| <Target Name="_MauiPrepareForILLink" BeforeTargets="_PrepareTrimConfiguration;_GenerateRuntimeConfigurationFilesInputCache;XamlC"> | ||||||
|
||||||
| <Target Name="_MauiPrepareForILLink" BeforeTargets="_PrepareTrimConfiguration;_GenerateRuntimeConfigurationFilesInputCache;XamlC"> | |
| <Target Name="_MauiPrepareForILLink" BeforeTargets="PrepareForILLink;PrepareTrimConfiguration;_PrepareTrimConfiguration;_GenerateRuntimeConfigurationFilesInputCache;XamlC"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This target now hooks an internal SDK target name (
_PrepareTrimConfiguration) as a workaround. Please add a short XML comment on/above this target explaining the runtime issue/workaround and that it should be switched toPrepareTrimConfigurationonce available, so future maintainers don’t remove or “clean up” the underscore target reference.