-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Settings -p:MauiXamlCValidateOnly=False not working on Debug configuration #10844
Copy link
Copy link
Closed
Labels
area-xamlXAML, CSS, Triggers, BehaviorsXAML, CSS, Triggers, Behaviorsplatform/androidplatform/iosplatform/macosmacOS / Mac CatalystmacOS / Mac Catalystplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versionPlease try to reproduce the potential issue on the latest public versiont/bugSomething isn't workingSomething isn't working
Milestone
Description
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
- Create maui project
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-xamlXAML, CSS, Triggers, BehaviorsXAML, CSS, Triggers, Behaviorsplatform/androidplatform/iosplatform/macosmacOS / Mac CatalystmacOS / Mac Catalystplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versionPlease try to reproduce the potential issue on the latest public versiont/bugSomething isn't workingSomething isn't working