-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[XSG] enable diagnostics by default on Debug #32052
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR changes the default behavior for XAML diagnostics in source generation to enable them by default in Debug builds when not explicitly configured. Previously, diagnostics were disabled unless explicitly enabled; now they default to enabled in Debug and disabled in Release configurations.
Key Changes
- Modified the EnableDiagnostics property logic to check build configuration
- Added explicit true/false checks for EnableMauiXamlDiagnostics before falling back to configuration-based default
- Changed default behavior from false to configuration-dependent (enabled for Debug, disabled for Release)
|
/backport to release/10.0.1xx |
|
Started backporting to release/10.0.1xx: https://github.com/dotnet/maui/actions/runs/18619327105 |
|
/rebase |
098a377 to
f22baa2
Compare
|
/backport to release/10.0.1xx |
|
Started backporting to release/10.0.1xx: https://github.com/dotnet/maui/actions/runs/18751318816 |
if EnableDiagnostics isn't set, defaut to true on Debug builds - fixes #32047
f22baa2 to
54d9fb8
Compare
Description of Change
if EnableDiagnostics isn't set, defaut to true on Debug builds
Issues Fixed