Repository navigation
[net11.0] Fix Windows build: add missing 'using static AssertHelpers' to TabbedPageTests.Windows.cs - #37818
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
mattleibow
temporarily deployed
to
copilot-pat-pool
August 25, 2026 23:22 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37818Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37818" |
mattleibow
temporarily deployed
to
copilot-pat-pool
August 25, 2026 23:22 — with
GitHub Actions
Inactive
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
mattleibow
temporarily deployed
to
copilot-pat-pool
August 25, 2026 23:23 — with
GitHub Actions
Inactive
mattleibow
temporarily deployed
to
copilot-pat-pool
August 25, 2026 23:25 — with
GitHub Actions
Inactive
mattleibow
temporarily deployed
to
copilot-pat-pool
August 25, 2026 23:27 — with
GitHub Actions
Inactive
mattleibow
temporarily deployed
to
copilot-pat-pool
August 25, 2026 23:27 — with
GitHub Actions
Inactive
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
Contributor
There was a problem hiding this comment.
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;toTabbedPageTests.Windows.cssoAssertEventually(...)resolves correctly (CS0103 fix).
This was referenced Aug 26, 2026
kubaflo
approved these changes
Aug 26, 2026
This was referenced Aug 28, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, butTabbedPageTests.Windows.cswas missing the static import forMicrosoft.Maui.DeviceTests.AssertHelpers. This causes CS0103 in both net11.0 Windows TFMs and blocks the Debug and Release Windows builds for every PR targetingnet11.0.This adds the same
using static Microsoft.Maui.DeviceTests.AssertHelpers;directive already present in every siblingTabbedPageTestspartial. 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 thenet11.0-windowsTFMs.