Skip to content

[net11.0] Fix Windows build: add missing 'using static AssertHelpers' to TabbedPageTests.Windows.cs - #37818

Merged
kubaflo merged 1 commit into
net11.0from
mattleibow-fix-net11-windows-tabbedpage-build
Aug 26, 2026
Merged

kubaflo merged 1 commit into
net11.0from
mattleibow-fix-net11-windows-tabbedpage-build

Conversation

@mattleibow

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

PR #37755 added Windows TabbedPage badge tests that call AssertEventually, but TabbedPageTests.Windows.cs was missing the static import for Microsoft.Maui.DeviceTests.AssertHelpers. This causes CS0103 in both net11.0 Windows TFMs and blocks the Debug and Release Windows builds for every PR targeting net11.0.

This adds the same using static Microsoft.Maui.DeviceTests.AssertHelpers; directive already present in every sibling TabbedPageTests partial. No test logic or runtime behavior changes.

Verification

Verified by code inspection that the sibling partials use the same static import and that AssertHelpers.AssertEventually(Func<bool>, ...) exists. Windows compile verification is deferred to CI because the local host is macOS and cannot build the net11.0-windows TFMs.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 25, 2026 23:22
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37818

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37818"

@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.

mattleibow added a commit that referenced this pull request Aug 25, 2026
TabbedPageTests.Windows.cs (added by #37755) calls AssertEventually(...)
without 'using static Microsoft.Maui.DeviceTests.AssertHelpers;', breaking the
net11.0 Windows build for every PR (CS0103). Every sibling partial of the class
already has this using; the Windows partial was the only one missing it.

This carries the same one-line fix as #37818 so this PR's own CI can compile the
Windows leg and produce consumable packages. It self-heals once net11.0 (with
#37818) is merged in — the identical line merges cleanly and drops from this
PR's diff.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 2ca68fe1-bef6-46a6-a0fd-17b7654cef34

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.

Pull request overview

Fixes a Windows build break in the net11.0-windows device tests by adding the missing static import needed for AssertEventually calls in the Windows TabbedPageTests partial.

Changes:

  • Add using static Microsoft.Maui.DeviceTests.AssertHelpers; to TabbedPageTests.Windows.cs so AssertEventually(...) resolves correctly (CS0103 fix).

@kubaflo
kubaflo merged commit c127c3f into net11.0 Aug 26, 2026
35 of 39 checks passed
@kubaflo
kubaflo deleted the mattleibow-fix-net11-windows-tabbedpage-build branch August 26, 2026 08:53
@github-actions github-actions Bot added this to the .NET 11.0-preview7 milestone Aug 26, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 9, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 1ec0cf7a Deployed Aug 25, 2026 by mattleibow via conclusion #1527
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants