Repository navigation
ci: build the Windows sample for its Windows target framework only - #85
Merged
Merged
Conversation
The build-windows job fails with NETSDK1147 (ios workload missing) since the runner image ships .NET SDK 10.0.404: restore evaluates every target framework of the sample, -f included, and only maui-windows is installed. Restrict the sample to its Windows target framework in that job.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
build-windowshas been failing onrelease/1.7.0since 2026-11-22: the sample build fails withNETSDK1147(theiosworkload is missing). The job installs onlymaui-windows, and the restore of the sample evaluates every target framework (android, ios, maccatalyst), even with-f. It started failing when the runner image began shipping .NET SDK 10.0.404 preinstalled; the 2026-11-17 runs, which downloaded the same SDK, passed.Fix: in that job, build the sample with
-p:TargetFrameworks=net10.0-windows10.0.19041.0.Tests
NETSDK1147, the new one builds with no errors and no warnings.