Skip to content
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

[X] Make OnPlatformExtension and OnIdiomExtension trim-compatible #26119

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

simonrozsival
Copy link
Member

Description of Change

I revisited the OnIdiomExtension and OnPlatformExtension based on customer feedback and I've realized the only trim-incompatible part of the code is creating default value for value types. This seems like a weird edge case and I believe we should throw so the developer fixes the XAML.

This would be a breaking change though. If approved, this PR shouldn't be included in servicing releases.

Issues Fixed

Fixes #26115

/cc @StephaneDelcroix @PureWeen

@simonrozsival simonrozsival added the area-xaml XAML, CSS, Triggers, Behaviors label Nov 26, 2024
@jfversluis jfversluis changed the title [X] Make OnPlatfornExtension and OnIdiomExtension trim-compatible [X] Make OnPlatformExtension and OnIdiomExtension trim-compatible Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-xaml XAML, CSS, Triggers, Behaviors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IL2026 Trim warning from Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator
1 participant