Skip to content

[XAML] Re-enable Incremental Hot Reload by default in Debug - #37157

Merged
kubaflo merged 1 commit into
net11.0from
redth-restore-xihr-default-net11
Aug 6, 2026
Merged

[XAML] Re-enable Incremental Hot Reload by default in Debug#37157
kubaflo merged 1 commit into
net11.0from
redth-restore-xihr-default-net11

Conversation

@Redth

@Redth Redth commented Aug 6, 2026

Copy link
Copy Markdown
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description

Re-enables XAML Incremental Hot Reload (XIHR) by default for Debug builds on net11.0. This undoes the temporary opt-out from #36832 now that the deterministic generation and Edit-and-Continue stability fixes from #36833 are merged.

Behavior

Configuration EnableMauiIncrementalHotReload MauiXamlHotReload
Debug (default) true SourceGen
Release / publish (default) false Legacy
Debug + explicit false false Legacy
Release + explicit true true SourceGen

The legacy fallback test remains explicitly pinned to XIHR-off and its comment now reflects the restored Debug default.

Testing

  • Evaluated the MSBuild property cascade for the four configurations above.
  • MSBuildTests.BuildAProject
  • MSBuildTests.HotReloadSupportForXSG (Debug and Release)

Restore the net11.0 Debug default that #36832 temporarily disabled now that the XIHR deterministic and Edit-and-Continue fixes are in place. Release builds remain off by default, and explicit opt-in or opt-out values are still respected.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 6, 2026 18:09
@Redth Redth added the area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging label Aug 6, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@Redth
Redth enabled auto-merge August 6, 2026 18:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Note

This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.

@kubaflo
kubaflo disabled auto-merge August 6, 2026 20:39
@kubaflo
kubaflo merged commit 6bb9daf into net11.0 Aug 6, 2026
27 of 30 checks passed
@kubaflo
kubaflo deleted the redth-restore-xihr-default-net11 branch August 6, 2026 20:39
@PureWeen

PureWeen commented Aug 6, 2026

Copy link
Copy Markdown
Member

/backport to release/11.0.1xx-preview7

1 similar comment
@PureWeen

PureWeen commented Aug 6, 2026

Copy link
Copy Markdown
Member

/backport to release/11.0.1xx-preview7

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0.1xx-preview7 (link to workflow run)

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

@PureWeen an error occurred while backporting to release/11.0.1xx-preview7. See the workflow output for details.

PureWeen added a commit that referenced this pull request Aug 6, 2026
…y default in Debug (#37163)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

Backport of #37157 to release/11.0.1xx-preview7

Re-enables XAML Incremental Hot Reload by default for Debug builds while
preserving the opt-out and keeping Release/publish builds disabled by
default. The legacy hot-reload fallback MSBuild test remains explicitly
pinned to XIHR off.

**Validation**
- The backport patch matches squash merge commit
`6bb9daf7aa47bde8e750635959e7c4db3c46561e` exactly (`git range-diff`).
- `dotnet build Microsoft.Maui.BuildTasks.slnf` passed with 0 warnings
and 0 errors.
- `MSBuildTests.HotReloadSupportForXSG` passed for Debug and Release
(2/2).
- `git diff --check` passes.

cc @PureWeen @Redth

Co-authored-by: Jonathan Dick <jodick@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants