Skip to content

Unable to access implicit styles while enable AOT and trimming #31025

@sudarsanMS

Description

@sudarsanMS

Description

Previously, we reported an issue with implicit styles. The issue was closed with the suggestion to use a reflection-based method as a solution. Reference to the previously reported issue: #17212

However, after enabling AOT and trimming, implicit styling no longer works due to the limitations of AOT when using reflection. Could you please provide a valid solution to overcome this issue?

Image

Steps to Reproduce

  1. Run the attached sample.
  2. click the hello world button.

sample - Sample.zip

Link to public reproduction project repository

No response

Version with bug

9.0.90 SR9

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-publishingIssues with the app packaging/publishing process (ipk/apk/msix/trimming)perf/app-sizeApplication Size / Trimming (sub: perf)platform/iosplatform/macosmacOS / Mac Catalysts/needs-attentionIssue has more information and needs another looks/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions