Skip to content

XamlCompilation does not work on Debug  #8633

@busec0

Description

@busec0

Description

XamlCompilation does not work on Debug configuration.

Similar with: #3794. It looks like this is a known thing/issue.

Any workaround for this? Is this intended to work only for Release targets? If yes, why?

Note: XamlCompilation works on Debug as well on Xamarin apps.

Steps to Reproduce

  1. On a maui sample app, add:
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
  1. Inspect the generated IL.
  2. Notice that on a debug configuration, the XamlCompilationOptions.Compile setting has no effect.

Version with bug

6.0.400 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, I was not able test on other platforms

Affected platform versions

Latest

Did you find any workaround?

No.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-xamlXAML, CSS, Triggers, Behaviorss/needs-verificationIndicates that this issue needs initial verification before further triage will happent/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions