Skip to content

Settings -p:MauiXamlCValidateOnly=False not working on Debug configuration #10844

@yunusefendi52

Description

@yunusefendi52

Description

setting MauiXamlCValidateOnly to false not working on Debug configuration, log:

Set Property: _MauiXamlCValidateOnly=False
Set Property: _MauiXamlCValidateOnly=True

other logs

ValidateOnly=True. Skipping writing assembly.

Looking at the source, it's working when settings it to -p:MauiXamlCValidateOnly=False -p:_MauiForceXamlCForDebug=True

Set Property: _MauiXamlCValidateOnly=False

Confirmed by the output dll with IL compiled xaml

Steps to Reproduce

  1. Create maui project
  2. dotnet build -f net6.0 -v diag -p:MauiXamlCValidateOnly=false

Expected: output dll should have IL compiled XAML
Actual: output dll doesn't have IL compiled XAML

Link to public reproduction project repository

no

Version with bug

6.0.486 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS, Other (Tizen, Linux, etc. not supported by Microsoft directly)

Affected platform versions

All?

Did you find any workaround?

Add -p:_MauiForceXamlCForDebug=True arg to force, but as far as I know property group prefixed with _ usually for internal use only

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions