Skip to content

[release/11.0.1xx-preview2] Add MauiXamlHotReload property for IDE communication#34219

Closed
github-actions[bot] wants to merge 2 commits intorelease/11.0.1xx-preview2from
backport/pr-34028-to-release/11.0.1xx-preview2
Closed

[release/11.0.1xx-preview2] Add MauiXamlHotReload property for IDE communication#34219
github-actions[bot] wants to merge 2 commits intorelease/11.0.1xx-preview2from
backport/pr-34028-to-release/11.0.1xx-preview2

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Backport of #34028 to release/11.0.1xx-preview2

/cc @StephaneDelcroix

StephaneDelcroix and others added 2 commits February 24, 2026 21:32
Introduces the MauiXamlHotReload MSBuild property to communicate to the IDE which
type of XAML Hot Reload implementation the application expects.

Values:
- Legacy (default): Traditional XAML Hot Reload
- SourceGen: Source generator-based XAML Hot Reload (experimental)

When SourceGen is selected, a warning (MAUI1002) is emitted indicating this
feature is experimental and not yet fully implemented.

This property exists to facilitate migration from legacy XAML Hot Reload to
the source generator-based approach. In a future release, Legacy may be
deprecated with SourceGen becoming the only supported mode.

Fixes #34027
Add case-insensitive comparison for SourceGen/Legacy values and emit
MAUI1003 warning for unrecognized values.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen
Copy link
Copy Markdown
Member

#34260

@PureWeen PureWeen closed this Feb 27, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants