Repository navigation
Move main to .NET 12 - #40060
Move main to .NET 12#40060
Conversation
This comment has been minimized.
This comment has been minimized.
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40060Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40060" |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
This comment has been minimized.
This comment has been minimized.
| # Tools such as Cake target net10.0; let them run on the repo's .NET 12 preview runtime when | ||
| # no .NET 10 runtime is installed (their own roll-forward setting skips prerelease runtimes). | ||
| - name: DOTNET_ROLL_FORWARD | ||
| value: Major |
There was a problem hiding this comment.
[major] Logic and Correctness Verification - Major-version roll-forward does not permit release-targeted tools to select prerelease runtimes. The Windows device-test stage provisions and prepends the isolated .dotnet root, then invokes net10.0 Cake for unpackaged and packaged builds. src/DotNet/DotNet.csproj deletes and recreates that root with the pinned .NET 12 alpha SDK/runtime, so Cake still fails framework resolution when no stable runtime exists there; a stable system runtime does not populate this installation. Enable DOTNET_ROLL_FORWARD_TO_PRERELEASE=1 for the affected invocations or install a compatible stable runtime into their selected root.
| { | ||
| public SwitchHoverResourceState(ResourceDictionary ownerResources) => OwnerResources = ownerResources; | ||
|
|
||
| public ResourceDictionary OwnerResources { get; } |
There was a problem hiding this comment.
[major] Memory Leak Prevention - Apply a non-null TrackColor to an on-switch, then replace ToggleSwitch.Resources without recoloring. The live switch's ConditionalWeakTable value strongly retains the discarded dictionary through OwnerResources, including its unrelated application resources. The replacement check runs only on a subsequent on-state TrackColor update, so the obsolete resource graph cannot be collected while the switch remains alive and unchanged. Release replaced owners without requiring another color update while preserving active-wrapper retention. Add a WeakReference collection test without recoloring; CustomOnColorPreservesReplacedResources immediately updates TrackColor and misses this path.
| - ImageOverride -equals 1ESPT-Ubuntu22.04 | ||
|
|
||
| # The .NET 11 iOS compatibility workload recommends Xcode 27.0. | ||
| - name: previousXcodeVersion |
There was a problem hiding this comment.
[major] Input and Path Correctness - The new unrestricted previousXcodeVersion string is forwarded through the integration job matrix to stage-integration-tests.yml's XCODE variable, then expanded directly into Bash source in provision.yml at XCODE_MAJOR_MINOR=$(XCODE) and the fallback XCODE_VERSION=$(XCODE) assignments. A value containing whitespace or shell metacharacters is parsed as shell syntax rather than rejected as a malformed version. The pinned-version verification happens only after this selection step. Pass the value as an environment variable and validate the numeric version format before using it, or constrain the parameter to an explicit supported-version list.
| # The .NET 12 Apple workloads require Xcode 27.1. Agents without it fall back to Xcode_27.app (27.0) | ||
| # during "Select Xcode Version", so keep validation off until every image has Xcode 27.1. | ||
| - name: ValidateXcodeVersion | ||
| value: false |
There was a problem hiding this comment.
[moderate] Build & MSBuild - On a public compilation agent with Xcode 27.0 at Xcode_27.app but no Xcode 27.1, provision.yml still accepts the major-version fallback. The compatible package installer is internal-only, while this migration pins the net12 iOS SDK and target platform to 27.1. Disabling validation and provisioning simulator runtimes for the older selected Xcode cannot supply its missing compilation SDK/APIs, so public net12 iOS framework, app and integration builds remain blocked on that configuration. Provision and require a compatible public compilation toolchain while preserving explicit previous-framework and UI-execution pins.
| //This assumes that this is always running from a mac with global workloads | ||
| const string DotnetToolPathDefault = "/usr/local/share/dotnet/dotnet"; | ||
| string DotnetVersion = Argument("targetFrameworkVersion", EnvironmentVariable("TARGET_FRAMEWORK_VERSION") ?? "net11.0"); | ||
| string DotnetVersion = Argument("targetFrameworkVersion", EnvironmentVariable("TARGET_FRAMEWORK_VERSION") ?? "net12.0"); |
There was a problem hiding this comment.
[moderate] Build & MSBuild - The legacy branch of eng/pipelines/device-tests.yml still defaults targetFrameworkVersions to net11.0. For definitions other than maui-pr-devicetests, device-tests-jobs.yml and device-tests-steps.yml explicitly pass --targetFrameworkVersion=net11.0, overriding this new fallback. Android's ExecuteBuild consequently requests -f net11.0-android, but the device projects now expose net12 platform TFMs through MauiDeviceTestsPlatforms; the requested framework is absent from their restored assets. Update the legacy matrix alongside this default so those runs can build their test bundles.
| # back to an older Xcode when the pinned one is missing; that Xcode has no device types | ||
| # for the pinned runtime, so match the selected Xcode's simulator SDK instead. | ||
| XCODE_MAJOR_MINOR="$(XCODE)" | ||
| SELECTED_SDK_VERSION=$(xcrun --sdk iphonesimulator --show-sdk-version 2>/dev/null) |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The selected-SDK fallback fix lacks a fixture where requested Xcode 27.1 falls back to simulator SDK 27.0. Review-PR.Tests.ps1 injects MAJOR/MINOR and extracts code starting at RUNTIME_ARCHITECTURE, bypassing this selection; deleting the new branch leaves those fixtures unchanged and permits downloading the incompatible requested runtime again. Add mismatched and matching requested/selected version cases asserting download arguments and the required runtime identifier. SimulatorRuntimeSelectionTests exercises the separate C# selector.
| } elseif ($env:UI_TEST_PLATFORM) { | ||
| $buildArguments += "--$env:UI_TEST_PLATFORM" | ||
| } | ||
| $extraCakeArguments = ConvertFrom-Json -InputObject $env:UI_TEST_CAKE_ARGS -NoEnumerate |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The argument-array fix has no regression fixture for an option containing spaces. Current sample-build callers leave cakeArgs empty, and RunTests.Tests.ps1 checks platform interpolation rather than received arguments, so neither detects reintroduced expression parsing or argument splitting. Capture arguments with an isolated stub build.ps1 and assert --nugetsource=/tmp/NuGet Cache remains one unchanged argument. Contrast accepted empty/single-item string arrays with rejected scalar/non-string inputs to cover the new guards.
| # resolve the raw framework-dependent binary there (e.g. Homebrew's | ||
| # libexec/pwsh) instead of the agent's entry point, and it fails when | ||
| # DOTNET_ROOT lacks its runtime. Keep $PSHOME, but last. | ||
| $pathEntries = $env:PATH -split ':' | Where-Object { $_ } |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The PATH-ordering fix lacks a regression fixture with the triggering leading Homebrew PSHOME entry. A host without that competing entry cannot detect reintroduced selection of raw libexec/pwsh instead of its wrapper, preventing subsequent PowerShell steps from starting when the selected runtime root lacks its required framework. Add isolated cases asserting repository dotnet first, wrapper before PSHOME, preserved unrelated entries, and no introduced PSHOME entry when it was absent.
| # Agents don't preinstall JDK 21, so this downloads it; the download host has | ||
| # intermittent 504 windows that outlast the task-level retry backoff. | ||
| - pwsh: | | ||
| foreach ($delay in 0, 30, 60, 120) { |
There was a problem hiding this comment.
[minor] Complexity Reduction - This four-attempt loop is also wrapped in retryCountOnTaskFailure: 4: persistent JDK provisioning failures now trigger up to 20 invocations and 1,050 seconds of explicit sleeps, excluding command time and Azure backoff. Every invocation also overwrites the same binlog. The longer backoff does not need two retry owners. Follow the single-owner pattern in eng/scripts/Install-AndroidSdkPackage.ps1: use one explicitly bounded loop with the intended total attempt budget and longer delays, disable task-level retries, and retain attempt-numbered diagnostics.
| "nuget": { | ||
| "name": "Microsoft.Extensions.Configuration", | ||
| "version": "10.0.0" | ||
| "version": "11.0.0" |
There was a problem hiding this comment.
[minor] Build & MSBuild - These generated registrations record Microsoft.Extensions.Configuration, DependencyInjection and Logging.Debug as 11.0.0, while their central eng/Versions.props values are 11.0.1. Microsoft.Maui.Templates.csproj enables automatic manifest generation; update-cgmanifest.ps1 reads these stable properties directly, so rebuilding rewrites all three entries to 11.0.1. Remove the generated-file delta and leave regeneration to the existing target rather than committing an inventory that disagrees with its producer.
Rebased onto latest main via net11 (b8cc4e7, which contains main d4ae6c2). The PR diff is unchanged; previous head 7494403 squashed these commits: - Move main to .NET 12 - Skip the net12 Apple scene-manifest validation for repo samples and test apps - Provision JDK 21 for the .NET 12 Android workload - Publish Helix xUnit payloads for the repo TFM - Drop the iossimulator-x64 RID, which net12 iOS no longer ships - Expect assembly version 12 in AssemblyInfoTests - Use MAUI 11 rc.2 as the previous MauiVersion in integration tests - Retry JDK provisioning with a longer backoff - Run one iOS integration lane on the xcode-27 image - Revert "Run one iOS integration lane on the xcode-27 image" - Always use iossimulator-arm64 in integration tests - Skip iOS runtimes XHarness can't create a simulator on - Fix Windows CI on the .NET 12 preview SDK - Skip .NET 12 iOS in public CI - Make the device-test Mono lane iOS-only - [ci] Restore public iOS coverage - Fix iOS test host and migration validation - Restore previous-framework Apple integration coverage - Isolate Android test hosts from Apple builds - Fix Android CoreCLR device test failures - Select the pinned internal Xcode package - Pass UI build arguments without expression evaluation - Restore iOS device-test runner scene lifecycle - Key Windows Switch hover state by ToggleSwitch - Wait for asynchronous Android CoreCLR GC bridge release in device-test GC helper - Restore Android Mono and iOS simulator-x64 test coverage - Keep TestCases HostApp on iossimulator-arm64; net12 iOS rejects x64 - Build Android and iOS Mono device tests in separate stages - Re-enable Debug CoreCLR sample-content integration test - Enable macOSTemplates, iOS Mono lanes and remaining Apple template tests - Log workload manifest state before Windows device-test builds - Fix iOS Mono integration-test lanes on .NET 12 SDK - Keep both iOS simulator RIDs for the net11 HostApp on CI - Shut down build servers before Windows device-test builds - Reconcile Windows Switch hover state with upstream dotnet#40209 - Re-enable Avalonia template tests and fix previous Apple TFMs - [net12][ci] Remove .NET 12 Mono and iossimulator-x64 coverage - [net12][tests] Isolate Android debug keystore per integration test - Keep PSHOME last in persisted macOS PATH - [ci] Require the exact iOS simulator runtime and accept already-installed runtimes - [ci] Keep the simulator provisioning contract with exact runtime checks - [ci] Select Xcode 27.1 for .NET 12 Apple builds where agents have it - [ci] Keep iOS UI test execution on the pinned Xcode - [ci] Provision simulator runtimes for the Xcode actually selected - [ci] Require the exact iOS simulator runtime and accept already-installed runtimes (dotnet#40407) - Restore .NET 12 dependency versions and provisioning after rebasing onto net11 - Make Issue2951Test re-query buttons after taps Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The implicit checkout fetched all tags (~158k objects vs ~27k), and those heavy anonymous PR-merge fetches intermittently failed with 'could not read Username', cascading into Gradle init and test failures on Android. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…redential UI-test jobs intermittently fail checkout for short windows with 'could not read Username' (GitHub rejects the job's credential), which cascades into Gradle-init and test failures. dotnet/maui is public, so retry the same commit anonymously instead of failing the job. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| - stage: devicetests_build_android_coreclr | ||
| displayName: ${{ parameters.TargetFrameworkVersion }} CoreCLR Android Helix Tests - Build |
| <!-- On CI, build universal binaries where both simulator architectures are supported. --> | ||
| <RuntimeIdentifiers Condition="$(TargetFramework.Contains('-maccatalyst')) and ('$(CI)' == 'true' or '$(TF_BUILD)' == 'true')">maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> | ||
| <RuntimeIdentifiers Condition="$(TargetFramework.Contains('-ios')) and ('$(CI)' == 'true' or '$(TF_BUILD)' == 'true')">iossimulator-x64;iossimulator-arm64</RuntimeIdentifiers> | ||
| <RuntimeIdentifiers Condition="$(TargetFramework.StartsWith('$(_MauiDotNetTfm)-ios')) and ('$(CI)' == 'true' or '$(TF_BUILD)' == 'true')">iossimulator-arm64</RuntimeIdentifiers> |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Expert Review — 12 findings
Reviewed commit c35642b.
See inline comments for details.
Previously reported findings were not duplicated.
| # Tools such as Cake target net10.0; let them run on the repo's .NET 12 preview runtime when | ||
| # no .NET 10 runtime is installed (their own roll-forward setting skips prerelease runtimes). | ||
| - name: DOTNET_ROLL_FORWARD | ||
| value: Major |
There was a problem hiding this comment.
[major] Logic and Correctness Verification - Major-version roll-forward does not permit release-targeted tools to select prerelease runtimes. The Windows device-test stage prepends the isolated .dotnet installation, then invokes net10.0 Cake for packaged and unpackaged builds. src/DotNet/DotNet.csproj deletes and recreates that root with the pinned .NET 12 alpha SDK/runtime, so Cake still fails framework resolution when it contains no stable runtime; a stable system installation does not satisfy this host. Enable prerelease roll-forward for these invocations or install a compatible stable runtime into their selected root.
| - ImageOverride -equals 1ESPT-Ubuntu22.04 | ||
|
|
||
| # The .NET 11 iOS compatibility workload recommends Xcode 27.0. | ||
| - name: previousXcodeVersion |
There was a problem hiding this comment.
[major] Input and Path Correctness - The unrestricted previousXcodeVersion parameter flows through job.xcodeVersion into XCODE in stage-integration-tests.yml, then Azure substitutes it into executable Bash at XCODE_MAJOR_MINOR=$(XCODE) in common/provision.yml:180 and the fallback XCODE_VERSION assignments. A value containing whitespace changes the assignment into a command invocation and fails provisioning under set -e. Pinned jobs disable package installation, and version verification runs afterward, so neither guards this newly connected source-to-sink path. Pass the value through an environment variable and validate numeric version syntax before selection.
| # The .NET 12 Apple workloads require Xcode 27.1. Agents without it fall back to Xcode_27.app (27.0) | ||
| # during "Select Xcode Version", so keep validation off until every image has Xcode 27.1. | ||
| - name: ValidateXcodeVersion | ||
| value: false |
There was a problem hiding this comment.
[moderate] Build & MSBuild - On a public compilation agent with Xcode 27.0 at Xcode_27.app but no Xcode 27.1, provision.yml still accepts the major-version fallback. The package installer is internal-only, while this migration pins the net12 iOS SDK and target platform to 27.1. Disabling validation and downloading simulator runtimes for the older selected Xcode cannot supply its missing compilation SDK/APIs, so net12 iOS app builds remain blocked on that configuration. Provision and require a compatible public compilation toolchain while preserving explicit previous-framework and UI-execution pins.
| //This assumes that this is always running from a mac with global workloads | ||
| const string DotnetToolPathDefault = "/usr/local/share/dotnet/dotnet"; | ||
| string DotnetVersion = Argument("targetFrameworkVersion", EnvironmentVariable("TARGET_FRAMEWORK_VERSION") ?? "net11.0"); | ||
| string DotnetVersion = Argument("targetFrameworkVersion", EnvironmentVariable("TARGET_FRAMEWORK_VERSION") ?? "net12.0"); |
There was a problem hiding this comment.
[moderate] Logic and Correctness Verification - The legacy branch of eng/pipelines/device-tests.yml still defaults targetFrameworkVersions to net11.0. For definitions other than maui-pr-devicetests, device-tests-jobs.yml and device-tests-steps.yml explicitly pass --targetFrameworkVersion=net11.0, overriding this fallback. Android's ExecuteBuild consequently requests -f net11.0-android, but Core and Controls device projects now expose net12 platform TFMs through MauiDeviceTestsPlatforms. Update that entry point's matrix alongside this default so its default runs can build their bundles.
|
|
||
| <!-- The current SDK pins {{BaseBuildTest.DotNetPrevious}} ILLink to a pre-release whose API does not | ||
| match the custom steps used by previous-.NET Apple SDKs for Mono builds (IL1027). --> | ||
| <Target Name="_MauiTestPinPreviousILLinkPack" BeforeTargets="ProcessFrameworkReferences"> |
There was a problem hiding this comment.
[moderate] Trimming and AOT Compatibility - This previous-framework ILLink pin is written only to the fixture-root Directory.Build.targets. BaseTemplateTests copies src/Templates/tests/Directory.Build.targets into each generated project's nearer directory; that file neither imports the parent nor contains this override. Consequently retained net11 Release SimpleTemplateTest.Build and BuildWithMauiVersion app cases miss the linker compatibility fix for the documented Apple Mono custom-step API mismatch (IL1027). Put the pin in targets those projects actually import. AppleTemplateTests derives directly from BaseBuildTest and does not have this shadowing problem.
| Assert.That(updatedButton.GetText(), Is.EqualTo("B")); | ||
| // The cell re-renders after the tap, which can invalidate element references | ||
| // (StaleElementReferenceException on Mac Catalyst), so re-query on each attempt. | ||
| App.RetryAssert(() => |
There was a problem hiding this comment.
[moderate] Logic and Correctness Verification - If either retry initially observes the pre-update button text or count while the cell re-renders, NUnit 4.0.1 records the failed assertion before throwing. HelperExtensions.RetryAssert catches that exception without isolating or clearing the recorded failure, so a later successful poll still leaves the test failed even when the UI settles within the retry window. Poll a non-asserting predicate or use a delayed NUnit constraint instead of retrying assertions in the current test context.
| } elseif ($env:UI_TEST_PLATFORM) { | ||
| $buildArguments += "--$env:UI_TEST_PLATFORM" | ||
| } | ||
| $extraCakeArguments = ConvertFrom-Json -InputObject $env:UI_TEST_CAKE_ARGS -NoEnumerate |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The argument-array fix has no discriminating regression fixture for an option containing spaces. Sample-build callers leave cakeArgs empty, and RunTests.Tests.ps1 checks platform interpolation rather than received arguments, so restoring expression parsing or argument splitting would go undetected. Add an isolated stub-build fixture asserting that an option containing a space arrives as one unchanged argument. Contrast accepted empty/single-item string arrays with rejected scalar/non-string inputs to cover the new guards without running a build.
| # resolve the raw framework-dependent binary there (e.g. Homebrew's | ||
| # libexec/pwsh) instead of the agent's entry point, and it fails when | ||
| # DOTNET_ROOT lacks its runtime. Keep $PSHOME, but last. | ||
| $pathEntries = $env:PATH -split ':' | Where-Object { $_ } |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The persisted-PATH fix has no regression fixture with the triggering leading Homebrew $PSHOME entry. A host without that competing entry cannot detect reintroduced selection of raw libexec/pwsh instead of its wrapper, which prevents subsequent PowerShell steps from starting when the selected runtime root lacks its framework. Add isolated cases asserting repository dotnet first, wrapper before $PSHOME, preserved unrelated entries, and no introduced $PSHOME entry when it was absent.
| # back to an older Xcode when the pinned one is missing; that Xcode has no device types | ||
| # for the pinned runtime, so match the selected Xcode's simulator SDK instead. | ||
| XCODE_MAJOR_MINOR="$(XCODE)" | ||
| SELECTED_SDK_VERSION=$(xcrun --sdk iphonesimulator --show-sdk-version 2>/dev/null) |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The selected-SDK fallback fix lacks a fixture where requested Xcode 27.1 falls back to simulator SDK 27.0. Review-PR.Tests.ps1 injects MAJOR/MINOR and extracts code starting at RUNTIME_ARCHITECTURE, bypassing this selection; deleting the new branch leaves those fixtures unchanged and permits downloading the incompatible requested runtime again. Add mismatched and matching requested/selected version cases asserting download arguments and the required runtime identifier. SimulatorRuntimeSelectionTests covers the separate C# selector.
| # Agents don't preinstall JDK 21, so this downloads it; the download host has | ||
| # intermittent 504 windows that outlast the task-level retry backoff. | ||
| - pwsh: | | ||
| foreach ($delay in 0, 30, 60, 120) { |
There was a problem hiding this comment.
[minor] Complexity Reduction - This four-attempt loop is also wrapped in retryCountOnTaskFailure: 4: persistent JDK provisioning failures trigger up to 20 invocations and 1,050 seconds of explicit sleeps, excluding command time and Azure backoff. Each invocation also overwrites the same binlog. The longer backoff does not need two retry owners. Follow the single-owner pattern in eng/scripts/Install-AndroidSdkPackage.ps1: use one bounded loop with the intended total attempt budget, disable task-level retries, and retain attempt-numbered diagnostics.
|
CI after rebasing onto latest
Android checkout fix: In the previous run, all 22 Android UI-test jobs failed when GitHub rejected the pipeline credential during checkout ( Retries (not caused by this PR, no tests disabled):
|
This comment has been minimized.
This comment has been minimized.
| # Tools such as Cake target net10.0; let them run on the repo's .NET 12 preview runtime when | ||
| # no .NET 10 runtime is installed (their own roll-forward setting skips prerelease runtimes). | ||
| - name: DOTNET_ROLL_FORWARD | ||
| value: Major |
There was a problem hiding this comment.
[major] Logic and Correctness Verification - Major-version roll-forward does not allow release-targeted tools to select prerelease runtimes. The Windows device-test stage provisions and prepends the isolated .dotnet root, then invokes net10.0 Cake for unpackaged and packaged builds. src/DotNet/DotNet.csproj recreates that root with the pinned .NET 12 alpha SDK/runtime, so Cake still fails framework resolution when no stable runtime exists there; a stable system installation does not populate this root. Enable DOTNET_ROLL_FORWARD_TO_PRERELEASE=1 for these invocations or install a compatible stable runtime into their selected root.
|
|
||
| # The .NET 11 iOS compatibility workload recommends Xcode 27.0. | ||
| - name: previousXcodeVersion | ||
| type: string |
There was a problem hiding this comment.
[major] Input and Path Correctness - The unrestricted previousXcodeVersion parameter flows through job.xcodeVersion into XCODE in stage-integration-tests.yml, then Azure substitutes it into executable Bash at XCODE_MAJOR_MINOR=$(XCODE) in common/provision.yml:180. A value containing whitespace, such as 27.0 beta, makes Bash attempt to execute the second word instead of assigning one version value, failing provisioning under set -e. These pinned jobs disable package installation, and pinned-version verification runs afterward, so neither guards this newly connected source-to-sink path. Pass the value through an environment variable and validate numeric version syntax before selection.
| //This assumes that this is always running from a mac with global workloads | ||
| const string DotnetToolPathDefault = "/usr/local/share/dotnet/dotnet"; | ||
| string DotnetVersion = Argument("targetFrameworkVersion", EnvironmentVariable("TARGET_FRAMEWORK_VERSION") ?? "net11.0"); | ||
| string DotnetVersion = Argument("targetFrameworkVersion", EnvironmentVariable("TARGET_FRAMEWORK_VERSION") ?? "net12.0"); |
There was a problem hiding this comment.
[moderate] Logic and Correctness Verification - eng/pipelines/device-tests.yml still defaults targetFrameworkVersions to net11.0. For definitions other than maui-pr-devicetests, device-tests-jobs.yml and device-tests-steps.yml explicitly pass --targetFrameworkVersion=net11.0, overriding this updated fallback. Android's ExecuteBuild consequently requests -f net11.0-android, but Core and Controls device projects now expose net12 platform TFMs through MauiDeviceTestsPlatforms. Update the legacy entry point's framework matrix alongside this migration so default runs can build their test bundles.
| - catalyst | ||
| skipProvisioning: ${{ parameters.skipProvisioning }} | ||
|
|
||
| - ${{ if and(containsValue(parameters.selectedPlatforms, 'android'), or(eq(length(parameters.selectedCategories), 0), and(not(contains(join(',', parameters.selectedCategories), ':')), ne(join('', parameters.selectedCategories), 'Material3')), contains(replace(join(',', parameters.selectedCategories), 'android:Material3', ''), 'android:'))) }}: |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - Splitting out the Android build adds an eleventh plain-category guard, but the existing 'handles qualified selections in every stage guard, including the dedicated lanes' test in .github/scripts/RunTests.Tests.ps1:645 still asserts exactly ten occurrences. That contract assertion necessarily fails against this template, independent of selected platforms or categories. Update the contract alongside the split while preserving its qualified-selection checks.
|
|
||
| <!-- The current SDK pins {{BaseBuildTest.DotNetPrevious}} ILLink to a pre-release whose API does not | ||
| match the custom steps used by previous-.NET Apple SDKs for Mono builds (IL1027). --> | ||
| <Target Name="_MauiTestPinPreviousILLinkPack" BeforeTargets="ProcessFrameworkReferences"> |
There was a problem hiding this comment.
[moderate] Trimming and AOT Compatibility - This previous-framework ILLink pin is written only to the fixture-root Directory.Build.targets. BaseTemplateTests copies src/Templates/tests/Directory.Build.targets into each generated project's nearer directory; that file neither imports the parent nor contains this override. Retained net11 Release SimpleTemplateTest.Build and BuildWithMauiVersion app cases therefore miss the linker compatibility fix for the documented previous-Apple Mono custom-step API mismatch (IL1027). Put the pin in targets those projects actually import. AppleTemplateTests derives directly from BaseBuildTest and does not have this shadowing problem.
| } elseif ($env:UI_TEST_PLATFORM) { | ||
| $buildArguments += "--$env:UI_TEST_PLATFORM" | ||
| } | ||
| $extraCakeArguments = ConvertFrom-Json -InputObject $env:UI_TEST_CAKE_ARGS -NoEnumerate |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The argument-array fix and its rejection guards lack a discriminating regression fixture. Current sample-build callers do not supply an option containing spaces, and RunTests.Tests.ps1 checks platform interpolation rather than received arguments, so reintroducing expression parsing or argument splitting would go undetected. Add an isolated stub-build fixture asserting that an option with a space-containing path arrives as one unchanged argument; contrast accepted empty/single-item string arrays with rejected scalar/non-string inputs.
| # resolve the raw framework-dependent binary there (e.g. Homebrew's | ||
| # libexec/pwsh) instead of the agent's entry point, and it fails when | ||
| # DOTNET_ROOT lacks its runtime. Keep $PSHOME, but last. | ||
| $pathEntries = $env:PATH -split ':' | Where-Object { $_ } |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The persisted-PATH fix has no regression fixture with the triggering leading Homebrew PSHOME entry. A host without that competing entry cannot detect reintroduced selection of raw libexec/pwsh instead of its wrapper, which prevents subsequent PowerShell steps from starting when the selected runtime root lacks its framework. Add isolated cases asserting repository dotnet first, wrapper before PSHOME, preservation of unrelated entries, and no introduced PSHOME entry when it was absent.
| # back to an older Xcode when the pinned one is missing; that Xcode has no device types | ||
| # for the pinned runtime, so match the selected Xcode's simulator SDK instead. | ||
| XCODE_MAJOR_MINOR="$(XCODE)" | ||
| SELECTED_SDK_VERSION=$(xcrun --sdk iphonesimulator --show-sdk-version 2>/dev/null) |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The selected-SDK fallback fix lacks a fixture where requested Xcode 27.1 falls back to simulator SDK 27.0. Review-PR.Tests.ps1 injects MAJOR/MINOR and extracts code starting at RUNTIME_ARCHITECTURE, bypassing this new selection; deleting the branch leaves those fixtures unchanged and permits downloading the incompatible requested runtime again. Add mismatched and matching requested/selected version cases asserting download arguments and the required runtime identifier. SimulatorRuntimeSelectionTests exercises the separate C# selector.
| # Agents don't preinstall JDK 21, so this downloads it; the download host has | ||
| # intermittent 504 windows that outlast the task-level retry backoff. | ||
| - pwsh: | | ||
| foreach ($delay in 0, 30, 60, 120) { |
There was a problem hiding this comment.
[minor] Complexity Reduction - This four-attempt loop remains wrapped in retryCountOnTaskFailure: 4. Persistent JDK provisioning failures therefore trigger up to 20 ProvisionJdk invocations and 1,050 seconds of explicit sleeps, excluding command time and Azure backoff, rather than the existing five-total-attempt setup budget. Use one retry owner: keep the longer delays in one bounded loop and remove the enclosing task retry.
| "nuget": { | ||
| "name": "Microsoft.Extensions.Configuration", | ||
| "version": "10.0.0" | ||
| "version": "11.0.0" |
There was a problem hiding this comment.
[minor] Build & MSBuild - These committed generated registrations record Microsoft.Extensions.Configuration, DependencyInjection and Logging.Debug as 11.0.0, while their central eng/Versions.props values are 11.0.1. Microsoft.Maui.Templates.csproj enables automatic manifest generation; update-cgmanifest.ps1 reads these stable properties directly, so rebuilding rewrites all three entries to 11.0.1. Remove the generated-file delta and leave regeneration to the existing target rather than committing an inventory that disagrees with its producer.
|
@dalexsoto stamp |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Expert Review — 11 findings
Reviewed commit c35642b.
See inline comments for details.
Previously reported findings were not duplicated.
| value: false | ||
| # Tools such as Cake target net10.0; let them run on the repo's .NET 12 preview runtime when | ||
| # no .NET 10 runtime is installed (their own roll-forward setting skips prerelease runtimes). | ||
| - name: DOTNET_ROLL_FORWARD |
There was a problem hiding this comment.
[major] Logic and Correctness Verification - DOTNET_ROLL_FORWARD=Major still excludes prerelease runtimes for release-targeted tools. The Windows device stage provisions and prepends the isolated .dotnet root before invoking net10.0 Cake for its unpackaged and packaged builds. src/DotNet/DotNet.csproj deletes and recreates that root with the pinned .NET 12 alpha SDK/runtime, so Cake cannot resolve its framework when no stable runtime exists there; a stable system installation does not populate this root. Enable DOTNET_ROLL_FORWARD_TO_PRERELEASE=1 for these invocations or install a compatible stable runtime into their selected root.
|
|
||
| # The .NET 11 iOS compatibility workload recommends Xcode 27.0. | ||
| - name: previousXcodeVersion | ||
| type: string |
There was a problem hiding this comment.
[major] Input and Path Correctness - The unrestricted previousXcodeVersion queue parameter flows through matrix xcodeVersion into XCODE in arcade/stage-integration-tests.yml, then into executable Bash through the unquoted XCODE_MAJOR_MINOR=$(XCODE) macro in common/provision.yml:180 and assignments at lines 202 and 205. Azure substitutes the value before Bash parses it: a value such as 27.0 beta becomes an assignment followed by execution of beta, failing provisioning under set -e rather than rejecting an invalid version. These pinned jobs disable package installation, and version verification occurs after this sink. Pass the value through the task environment and validate a numeric version or explicit allowlist before use.
| //This assumes that this is always running from a mac with global workloads | ||
| const string DotnetToolPathDefault = "/usr/local/share/dotnet/dotnet"; | ||
| string DotnetVersion = Argument("targetFrameworkVersion", EnvironmentVariable("TARGET_FRAMEWORK_VERSION") ?? "net11.0"); | ||
| string DotnetVersion = Argument("targetFrameworkVersion", EnvironmentVariable("TARGET_FRAMEWORK_VERSION") ?? "net12.0"); |
There was a problem hiding this comment.
[moderate] Logic and Correctness Verification - eng/pipelines/device-tests.yml still defaults targetFrameworkVersions to net11.0. For definitions other than maui-pr-devicetests, the jobs/steps templates explicitly pass --targetFrameworkVersion=net11.0, overriding this updated fallback. Android consequently requests -f net11.0-android, but Core and Controls device projects expose only current net12 platform TFMs through MauiDeviceTestsPlatforms. Update the legacy entry point matrix alongside this migration so default runs can build their test bundles.
| - catalyst | ||
| skipProvisioning: ${{ parameters.skipProvisioning }} | ||
|
|
||
| - ${{ if and(containsValue(parameters.selectedPlatforms, 'android'), or(eq(length(parameters.selectedCategories), 0), and(not(contains(join(',', parameters.selectedCategories), ':')), ne(join('', parameters.selectedCategories), 'Material3')), contains(replace(join(',', parameters.selectedCategories), 'android:Material3', ''), 'android:'))) }}: |
There was a problem hiding this comment.
[moderate] Logic and Correctness Verification - Splitting out the Android build adds an eleventh plain-category guard, but the existing qualified-selection contract in .github/scripts/RunTests.Tests.ps1:645 still asserts exactly ten occurrences. That assertion necessarily fails against this template, independent of selected platforms or categories. Update the contract alongside the split while preserving coverage that platform-qualified selections cannot activate unrelated stages.
|
|
||
| <!-- The current SDK pins {{BaseBuildTest.DotNetPrevious}} ILLink to a pre-release whose API does not | ||
| match the custom steps used by previous-.NET Apple SDKs for Mono builds (IL1027). --> | ||
| <Target Name="_MauiTestPinPreviousILLinkPack" BeforeTargets="ProcessFrameworkReferences"> |
There was a problem hiding this comment.
[moderate] Trimming and AOT Compatibility - This previous-framework ILLink pin is written only to the fixture-root Directory.Build.targets. BaseTemplateTests copies src/Templates/tests/Directory.Build.targets into each generated project directory; that nearer file neither imports the parent nor contains this override. Retained net11 Release SimpleTemplateTest.Build and BuildWithMauiVersion app cases therefore miss the compatibility fix for the documented previous-Apple Mono custom-step API mismatch (IL1027). Put the pin in targets those projects actually import. AppleTemplateTests derives directly from BaseBuildTest and does not have this shadowing problem.
| Assert.That(updatedButton.GetText(), Is.EqualTo("B")); | ||
| // The cell re-renders after the tap, which can invalidate element references | ||
| // (StaleElementReferenceException on Mac Catalyst), so re-query on each attempt. | ||
| App.RetryAssert(() => |
There was a problem hiding this comment.
[moderate] Logic and Correctness Verification - App.RetryAssert catches exceptions without isolating the NUnit result. These platform test projects use NUnit 4.0.1, where a failed Assert.That records an assertion failure before throwing. If the first poll sees the old text or button count, a later successful poll returns from the helper but leaves that recorded failure behind, so the intended asynchronous retry still fails the test. Poll a non-asserting predicate and assert once after success, use a delayed NUnit constraint, or isolate each assertion attempt.
| } elseif ($env:UI_TEST_PLATFORM) { | ||
| $buildArguments += "--$env:UI_TEST_PLATFORM" | ||
| } | ||
| $extraCakeArguments = ConvertFrom-Json -InputObject $env:UI_TEST_CAKE_ARGS -NoEnumerate |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The argument-array fix and its rejection guards lack a discriminating regression fixture. Current sample-build callers do not supply an option containing spaces, and RunTests.Tests.ps1 checks platform interpolation rather than received arguments, so reintroducing expression parsing or argument splitting would go undetected. Add an isolated stub-build fixture asserting that an option with a space-containing path arrives as one unchanged argument, with accepted empty/single-item string arrays and rejected scalar/non-string inputs.
| # back to an older Xcode when the pinned one is missing; that Xcode has no device types | ||
| # for the pinned runtime, so match the selected Xcode's simulator SDK instead. | ||
| XCODE_MAJOR_MINOR="$(XCODE)" | ||
| SELECTED_SDK_VERSION=$(xcrun --sdk iphonesimulator --show-sdk-version 2>/dev/null) |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The selected-SDK fallback fix lacks a fixture where requested Xcode 27.1 falls back to simulator SDK 27.0. Review-PR.Tests.ps1 injects MAJOR/MINOR and extracts code starting at RUNTIME_ARCHITECTURE, bypassing this selection; deleting the new branch leaves those fixtures unchanged and permits downloading the incompatible requested runtime again. Add mismatched and matching requested/selected version cases asserting download arguments and the required runtime identifier. SimulatorRuntimeSelectionTests exercises the separate C# selector.
| # Agents don't preinstall JDK 21, so this downloads it; the download host has | ||
| # intermittent 504 windows that outlast the task-level retry backoff. | ||
| - pwsh: | | ||
| foreach ($delay in 0, 30, 60, 120) { |
There was a problem hiding this comment.
[minor] Complexity Reduction - This four-attempt loop remains wrapped in retryCountOnTaskFailure: 4. Persistent JDK provisioning failures therefore trigger up to 20 ProvisionJdk invocations and 1,050 seconds of explicit sleeps, excluding command time and Azure backoff, rather than the previous five total attempts. Follow the single-owner pattern in eng/scripts/Install-AndroidSdkPackage.ps1: keep the longer delays in one bounded loop with an explicit total attempt budget and remove the enclosing task retry.
| "nuget": { | ||
| "name": "Microsoft.Extensions.Configuration", | ||
| "version": "10.0.0" | ||
| "version": "11.0.0" |
There was a problem hiding this comment.
[minor] Build & MSBuild - These committed generated registrations record Microsoft.Extensions.Configuration, DependencyInjection and Logging.Debug as 11.0.0, while their central eng/Versions.props values are 11.0.1. The template project automatically regenerates this manifest, and update-cgmanifest.ps1 reads these stable properties directly, so rebuilding rewrites all three entries to 11.0.1. Remove the generated-file delta and leave regeneration to the existing target rather than committing an inventory that disagrees with its producer.
Preserve selected device-test dispatches and Helix filters with separate Android and Apple build stages. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Resolved the merge conflicts with |
|
@dalexsoto stamp |
|
|
||
| <!-- The .NET 12 Apple SDKs reject apps without a UIApplicationSceneManifest (MT7199); our samples and test apps don't use scenes yet. --> | ||
| <PropertyGroup> | ||
| <ValidateSceneManifest Condition="'$(ValidateSceneManifest)' == ''">false</ValidateSceneManifest> |
|
/review expert-review |
There was a problem hiding this comment.
Expert Review — 10 findings
Reviewed commit 8260118.
Source assessment incomplete (11/12 dimensions); finding count is partial.
See inline comments for details.
1 findings could not be attached inline; retained in run artifacts.
| # Tools such as Cake target net10.0; let them run on the repo's .NET 12 preview runtime when | ||
| # no .NET 10 runtime is installed (their own roll-forward setting skips prerelease runtimes). | ||
| - name: DOTNET_ROLL_FORWARD | ||
| value: Major |
There was a problem hiding this comment.
[major] Logic and Correctness Verification - Major-version roll-forward does not allow release-targeted tools to select prerelease runtimes. The Windows device-test stage provisions and prepends the isolated .dotnet root before invoking net10.0 Cake for unpackaged and packaged builds. src/DotNet/DotNet.csproj recreates that root with the pinned .NET 12 alpha SDK/runtime; a stable system installation does not populate this selected host. With no stable runtime in that root, Cake fails framework resolution before building the apps. Enable DOTNET_ROLL_FORWARD_TO_PRERELEASE=1 for these tool invocations or install a compatible stable runtime into their selected root.
| - ImageOverride -equals 1ESPT-Ubuntu22.04 | ||
|
|
||
| # The .NET 11 iOS compatibility workload recommends Xcode 27.0. | ||
| - name: previousXcodeVersion |
There was a problem hiding this comment.
[major] Input and Path Correctness - The unrestricted previousXcodeVersion parameter flows through matrix xcodeVersion into XCODE in arcade/stage-integration-tests.yml, then Azure substitutes it into executable Bash at XCODE_MAJOR_MINOR=$(XCODE) in common/provision.yml:180. A value such as 27.0 beta makes Bash attempt to execute beta instead of assigning one version value, failing provisioning under set -e. These pinned jobs disable package installation, and pinned-version verification runs afterward, so neither guards the assignment. Pass the value through the task environment and validate numeric version syntax before selection.
| - catalyst | ||
| skipProvisioning: ${{ parameters.skipProvisioning }} | ||
|
|
||
| - ${{ if and(containsValue(parameters.selectedPlatforms, 'android'), or(eq(length(parameters.selectedCategories), 0), and(not(contains(join(',', parameters.selectedCategories), ':')), ne(join('', parameters.selectedCategories), 'Material3')), contains(replace(join(',', parameters.selectedCategories), 'android:Material3', ''), 'android:'))) }}: |
There was a problem hiding this comment.
[moderate] Logic and Correctness Verification - Splitting out the Android build adds an eleventh not(contains(join(',', parameters.selectedCategories), ':')) expression, but the qualified-selection contract in .github/scripts/RunTests.Tests.ps1:662 still asserts exactly ten occurrences. That assertion fails against this template independently of platform or category selection. Update the contract alongside the split while retaining checks that platform-qualified selections cannot activate unrelated stages.
|
|
||
| <!-- The current SDK pins {{BaseBuildTest.DotNetPrevious}} ILLink to a pre-release whose API does not | ||
| match the custom steps used by previous-.NET Apple SDKs for Mono builds (IL1027). --> | ||
| <Target Name="_MauiTestPinPreviousILLinkPack" BeforeTargets="ProcessFrameworkReferences"> |
There was a problem hiding this comment.
[moderate] Trimming and AOT Compatibility - The previous-framework ILLink pin is written only to the fixture-root Directory.Build.targets. BaseTemplateTests copies src/Templates/tests/Directory.Build.targets into each generated project directory; that nearer file neither imports the parent nor contains this override. Retained net11 Release SimpleTemplateTest.Build and BuildWithMauiVersion app cases therefore miss the compatibility fix for the documented previous-Apple Mono custom-step API mismatch (IL1027). Put the pin in targets those projects actually import and assert the resolved linker version in both fixture layouts. AppleTemplateTests derives directly from BaseBuildTest and does not have this shadowing problem.
| # for the pinned runtime, so match the selected Xcode's simulator SDK instead. | ||
| XCODE_MAJOR_MINOR="$(XCODE)" | ||
| SELECTED_SDK_VERSION=$(xcrun --sdk iphonesimulator --show-sdk-version 2>/dev/null) | ||
| if [[ "$SELECTED_SDK_VERSION" =~ ^([0-9]+)\.([0-9]+) ]]; then |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The selected-SDK fallback fix has no fixture for requested Xcode 27.1 falling back to simulator SDK 27.0. Review-PR.Tests.ps1 extracts architecture/download selection starting at RUNTIME_ARCHITECTURE and injects MAJOR/MINOR directly, bypassing this new branch. Removing the branch leaves those tests unchanged while provisioning again requests the incompatible 27.1 runtime. Add contrasting mismatched and matching requested/selected SDK fixtures asserting the download version and required runtime identifier. SimulatorRuntimeSelectionTests exercises the separate C# selector, not this branch.
| # libexec/pwsh) instead of the agent's entry point, and it fails when | ||
| # DOTNET_ROOT lacks its runtime. Keep $PSHOME, but last. | ||
| $pathEntries = $env:PATH -split ':' | Where-Object { $_ } | ||
| $otherEntries = @($pathEntries | Where-Object { $_.TrimEnd('/') -ne $PSHOME.TrimEnd('/') }) |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The persisted-PATH fix has no regression fixture with the triggering leading Homebrew PSHOME entry. Without that competing entry, reverting to the old PATH construction is indistinguishable, although later steps can again select raw libexec/pwsh instead of the agent launcher and fail runtime resolution. Add isolated transformation cases with PSHOME before the launcher and absent entirely, asserting repository dotnet first, preserved unrelated entry order, and PSHOME moved last only when originally present.
| $extraCakeArguments = ConvertFrom-Json -InputObject $env:UI_TEST_CAKE_ARGS -NoEnumerate | ||
| if ($extraCakeArguments -isnot [array]) { | ||
| throw 'cakeArgs must be an array of individual arguments.' | ||
| } |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The argument-array change and rejection guards have no discriminating fixture. Current sample-build callers leave cakeArgs empty, and RunTests.Tests.ps1 checks platform interpolation rather than received arguments, so neither detects renewed splitting of an option containing a path with spaces. Capture arguments with an isolated stub build.ps1 and assert such an option arrives as one unchanged argument; contrast accepted empty/single-item string arrays with rejected scalar and non-string inputs.
| Assert.That(updatedButton.GetText(), Is.EqualTo("B")); | ||
| // The cell re-renders after the tap, which can invalidate element references | ||
| // (StaleElementReferenceException on Mac Catalyst), so re-query on each attempt. | ||
| App.RetryAssert(() => |
There was a problem hiding this comment.
[moderate] Async and Threading Safety - If either retry initially observes the old button text or count while the cell re-renders, NUnit 4.0.1 records the failed assertion before throwing. HelperExtensions.RetryAssert catches that exception without isolating or clearing the recorded failure, so a later successful poll still leaves the test failed even when the UI settles within the retry window. Poll a non-asserting predicate or use a delayed NUnit constraint instead.
| # Agents don't preinstall JDK 21, so this downloads it; the download host has | ||
| # intermittent 504 windows that outlast the task-level retry backoff. | ||
| - pwsh: | | ||
| foreach ($delay in 0, 30, 60, 120) { |
There was a problem hiding this comment.
[minor] Complexity Reduction - The four-attempt loop is also wrapped in retryCountOnTaskFailure: 4. A persistent JDK provisioning failure therefore permits 20 ProvisionJdk invocations and 1,050 seconds of explicit sleeps, excluding command time and Azure backoff. Keep the necessary longer backoff under one retry owner and remove the enclosing task retry.


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!
Target Branch
mainnet11, for reviewFor .NET 11 fixes, only a maintainer retargets the approved PR to the active
inflight lane and merges it after CI validates that final base. Do not merge
individual fixes directly into
net11; agents must not retarget or merge.Description of Change
Moves
mainfrom .NET 11 to .NET 12. (net11is now the .NET 11 servicing branch.)SDK / workloads — taken from coherent
mainbuilds of dotnet/android and dotnet/macios, which are both built against the same VMR SDK:12.0.100-alpha.1.26523.103/12.0.0-alpha.1.26523.103net12.0_27.1)27.1.12089-net12-p1net12.0_27.0)27.0.13384-net12-p1(same macios commit7af83b1)37.99.0-preview.1.35812.0.100-alpha.1Arcade stays on 11 for now.
Changes
global.json,eng/Versions.props,eng/Version.Details.xml: SDK, runtime, Apple and Android versions;MajorVersion,SdkBandVersionandAssemblyVersionare now 12. Previous-framework workload metadata is aligned with the retained upstream parents.Directory.Build.props: current TFMnet12.0, iOS TPV27.1.Workloads.csproj(net10 → net11),MicrosoftMauiPreviousDotNetReleasedVersion(11.0.0-rc.2.26505.5) and the integration-test constants.NuGet.config:dotnet12anddotnet12-transportfeeds;ValidateXcodeVersion=falsebypasses version validation, but cannot supply the iOS 27.1 APIs missing from agents with Xcode 27.0. Those public Apple builds remain blocked until a suitable toolchain is available.11.0.0.0→12.0.0.0.net12.0.Coverage still unresolved: this PR currently removes the Android Mono device-test lane and the net12 iOS simulator-x64 UI-host target because those runtime configurations are no longer supplied by the current upstream workloads. The net11 x64 cases do not restore equivalent net12 coverage. The retained iOS Mono device build also fails to link with the current workload. The request to keep every test configuration enabled is therefore not yet satisfied.
Validation: The previous-framework Build partition passed 15/15 locally, the restored net11 iOS simulator-x64 NativeAOT cases passed 2/2, current-framework iOS arm64 NativeAOT passed 2/2, and two iOS simulator integration cases passed 2/2. Apple validation used local Xcode 27.1 with the version check bypassed where required. On an Android API 33 arm64 emulator with .NET 12 CoreCLR, the Entry category passed 246 tests with 2 skipped, Essentials passed 424/424, and HybridWebView passed 97 tests with 5 skipped. Controlled reversions reproduced the input-service and missing-file failures. Full local Core and Controls runs still had failures; not all Controls leak-assertion failures have been classified. Latest-head CI is running; actual internal Xcode-package installation and the strict Xcode 27.0 job pin still require CI validation.
Issues Fixed
N/A — SDK migration.
Follow-ups (not in this PR)
ValidateXcodeVersion=falsewhere no longer needed.