Repository navigation
[iOS/MacCatalyst] Fix candidate CollectionView scroll-helper compilation - #40196
Merged
kubaflo merged 1 commit intoNov 12, 2026
Merged
Conversation
Keep CarouselView exclusions in each handler layout so the shared scroll helper does not reference obsolete controller APIs. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
temporarily deployed
to
copilot-pat-pool
November 12, 2026 20:51 — with
GitHub Actions
Inactive
This comment has been minimized.
This comment has been minimized.
kubaflo
temporarily deployed
to
copilot-pat-pool
November 12, 2026 20:51 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 12, 2026 20:52 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 12, 2026 20:54 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 12, 2026 20:56 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 12, 2026 20:56 — with
GitHub Actions
Inactive
This was referenced Nov 12, 2026
kubaflo
added a commit
that referenced
this pull request
Nov 13, 2026
…ion (#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by #39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> #39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to #40116. Repairs the Apple compilation regression introduced by #39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 16, 2026
…ion (#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by #39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> #39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to #40116. Repairs the Apple compilation regression introduced by #39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 16, 2026
…ion (#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by #39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> #39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to #40116. Repairs the Apple compilation regression introduced by #39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 17, 2026
…ion (#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by #39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> #39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to #40116. Repairs the Apple compilation regression introduced by #39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 18, 2026
…ion (#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by #39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> #39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to #40116. Repairs the Apple compilation regression introduced by #39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 18, 2026
…ion (#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by #39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> #39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to #40116. Repairs the Apple compilation regression introduced by #39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 18, 2026
…ion (#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by #39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> #39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to #40116. Repairs the Apple compilation regression introduced by #39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 19, 2026
…ion (#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by #39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> #39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to #40116. Repairs the Apple compilation regression introduced by #39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 22, 2026
…ion (#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by #39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> #39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to #40116. Repairs the Apple compilation regression introduced by #39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 23, 2026
…ion (#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by #39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> #39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to #40116. Repairs the Apple compilation regression introduced by #39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
KarthikRajaKalaimani
pushed a commit
to KarthikRajaKalaimani/maui
that referenced
this pull request
Nov 26, 2026
…ion (dotnet#40196) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .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. This is the explicitly coordinated **candidate-integration build repair** for dotnet#40116, targeting `candidate/11.0.1xx-sr2`. The helper introduced by dotnet#39493 is not on `net11` or `main`; this PR changes only its three affected source files and does not import candidate contents into another branch. ### Description of Change <!-- Enter description of the fix in this section --> dotnet#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy `CarouselViewController`. With the repository's warnings-as-errors policy, this produces `CS0618` in `Controls.Core` for both `net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI sample from compiling. Move the CarouselView exclusions to the corresponding layout callbacks: - The already-obsolete legacy `ItemsViewLayout` checks `CarouselViewController`. - The current compositional layout checks `CarouselViewController2`. - The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path. Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and `KeepLastItemInView` are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes. #### Validation Validated with the candidate's SDK **11.0.101** (`global.json` provisioning version `11.0.101-servicing.26559.106`) and pinned iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final committed build also passed after refreshing onto candidate `03a6ec676c`. ```sh .dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \ -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \ -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \ -p:TreatWarningsAsErrors=true -v:quiet ``` **Passed: 0 warnings, 0 errors**, including both native Apple target frameworks. The causal check was baseline red (the two `CS0618` errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit `170cdfbcf8` was compiled successfully before pushing. ```sh .dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --check ``` **Passed.** **Full UI-host packaging/runtime limitation:** an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK `27.0.12230` requires **Xcode 27.0**, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native `Controls.Core` compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Relates to dotnet#40116. Repairs the Apple compilation regression introduced by dotnet#39493. Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App log 188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188), showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native Apple TFMs. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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 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.
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.This is the explicitly coordinated candidate-integration build repair for #40116, targeting
candidate/11.0.1xx-sr2. The helper introduced by #39493 is not onnet11ormain; this PR changes only its three affected source files and does not import candidate contents into another branch.Description of Change
#39493 introduced
ItemsViewScrollHelper, a non-obsolete shared helper whose CarouselView guard references the obsolete legacyCarouselViewController. With the repository's warnings-as-errors policy, this producesCS0618inControls.Corefor bothnet11.0-ios27.0andnet11.0-maccatalyst27.0, preventing the UI sample from compiling.Move the CarouselView exclusions to the corresponding layout callbacks:
ItemsViewLayoutchecksCarouselViewController.CarouselViewController2.Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and
KeepLastItemInVieware unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes.Validation
Validated with the candidate's SDK 11.0.101 (
global.jsonprovisioning version11.0.101-servicing.26559.106) and pinned iOS/MacCatalyst SDK 27.0.12230. The reversible check ran on candidate0be82c01b9f9dcc5d58684fa92fb493b0e8f9625; the final committed build also passed after refreshing onto candidate03a6ec676c.Passed: 0 warnings, 0 errors, including both native Apple target frameworks. The causal check was baseline red (the two
CS0618errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit170cdfbcf8was compiled successfully before pushing..dotnet/dotnet format whitespace --folder \ --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \ src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \ src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \ --exclude Templates/src --verify-no-changes --verbosity minimal git diff --checkPassed.
Full UI-host packaging/runtime limitation: an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
27.0.12230requires Xcode 27.0, while this machine has Xcode 27.1/27.2. The check was not bypassed. NativeControls.Corecompilation above is verified; full HostApp packaging and runtime/UI tests are not claimed.Issues Fixed
Relates to #40116. Repairs the Apple compilation regression introduced by #39493.
Original CI evidence: maui-pr-uitests build 1677816, Build Sample App log 188, showing
ItemsViewScrollHelper.cs(26,63): error CS0618for both native Apple TFMs.