Skip to content

[api] Ship remaining public API baselines on main - #39857

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-ship-public-api-baselines
Nov 4, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-ship-public-api-baselines

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Ship all remaining public API records on current main, following the requested branch-wide rollover. #39807 previously shipped only the .NET 11 GA snapshot and deliberately retained later changes as unshipped; this follow-up ships those remaining changes too. This does not claim that post-GA APIs belonged to the original GA artifacts.

Run the repository's documented eng/scripts/mark-shipped.ps1 workflow from docs/design/APIChangeTracking.md:

  • Move 43 pending API records into shipped baselines across 9 baseline pairs / 18 files.
  • Apply 3 recorded Android PickerHandler2 removals to their old shipped signatures, retaining the replacement signatures. No removal directives remain in shipped inventories.
  • Leave all 61 tracked Unshipped files containing only #nullable enable, with zero API or removal records.
  • Preserve the exact effective API set and signature/nullability markers in every baseline pair. The other 52 pairs remain unchanged.

Only API baseline files change; no framework implementation, API signatures, project configuration, or pipeline changes.

.NET 11 release branch: independently checked freshly fetched release/11.0.1xx at 4645bd1707064533ef2fdd0220bb87de36ca928d. Its 71 baseline pairs already have zero unshipped records, following merged #39474. No duplicate release PR is necessary.

Validation

  • pwsh -NoProfile -File ./eng/scripts/mark-shipped.ps1 — passed; running it a second time produced an identical patch.
  • python3 /Users/kubaflo/.copilot/session-state/23b4e34a-9429-4bcb-9c4f-c6fff6d56dbf/files/verify-api-shipping.py 82b9930a39a4a3d64428646a759eaa9855f01028 — passed: all 61 baseline pairs; exact (previous shipped + additions) - removals API conservation; zero unshipped entries; no duplicate records or unmatched removals; exact 18-file scope; untouched pairs preserved. This verifier is a session artifact, not a repository change.
  • dotnet restore src/Controls/src/BindingSourceGen/Controls.BindingSourceGen.csproj -p:TargetFramework=netstandard2.0 -p:TargetFrameworks=netstandard2.0 -nologo -v:quiet — passed.
  • dotnet restore src/Core/src/HybridWebViewSourceGen/Core.HybridWebViewSourceGen.csproj -p:TargetFramework=netstandard2.0 -p:TargetFrameworks=netstandard2.0 -nologo -v:quiet — passed.
dotnet build src/Controls/src/Core/Controls.Core.csproj --no-restore -t:Rebuild -f net11.0 -c Release -p:PublicApiType=Validate -p:TargetFrameworks=net11.0 -p:IncludeAndroidTargetFrameworks=false -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -p:IncludeWindowsTargetFrameworks=false -p:IncludeTizenTargetFrameworks=false -nologo -v:quiet

Passed: 0 warnings, 0 errors, rebuilding Controls and its dependencies with public-API validation. Initial attempts encountered missing restore assets, then netstandard2.0 generator targets missing from the neutral-only restore; explicitly restoring both generators resolved those setup failures.

files=(); while IFS= read -r path; do files+=("$path"); done < <(git diff --name-only)
dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include "${files[@]}" --verbosity quiet
git diff --check

Passed; formatter was scoped to the 18 changed baseline files and produced no additional changes. Open and recently merged API-shipping PRs were reviewed before publication.

Local compiler validation used installed SDK 11.0.100-preview.6.26359.118, not pinned RTM SDK 11.0.100-rtm.26514.118. Native Android/Apple/Windows builds, device/UI tests, and full CI were not run locally; this is baseline migration verification plus a representative neutral analyzer rebuild, not full-platform certification.

Issues Fixed

N/A — requested public API baseline housekeeping; no bug issue is closed.

Roll all remaining public API records into shipped baselines using the documented mark-shipped script. Apply recorded removals while preserving the effective API surface and nullable markers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 23b4e34a-9429-4bcb-9c4f-c6fff6d56dbf
Copilot AI balanced review requested due to automatic review settings November 3, 2026 16:19
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 3, 2026 16:19 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

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

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

Or

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

@azure-pipelines

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain to block approval.

No open issues 🎉

What changed in this PR

Completes the public API baseline rollover on main following #39807, recording the remaining APIs as shipped without changing framework implementation or the effective API surface. This does not reclassify those APIs as part of the original .NET 11 GA release.

Changes:

  • Moves 43 pending API records into shipped inventories across nine baseline pairs.
  • Applies three recorded Android PickerHandler2 removals while retaining their replacement signatures.
  • Resets the nine affected unshipped files to #nullable enable, preserving signature and nullability markers.
File Description
src/​Core/​src/​PublicAPI/​net-maccatalyst/​PublicAPI.Unshipped.txt Clears two migrated override records.
src/​Core/​src/​PublicAPI/​net-maccatalyst/​PublicAPI.Shipped.txt Records page sizing and touch-view lifecycle overrides.
src/​Core/​src/​PublicAPI/​net-ios/​PublicAPI.Unshipped.txt Clears two migrated override records.
src/​Core/​src/​PublicAPI/​net-ios/​PublicAPI.Shipped.txt Records page sizing and touch-view lifecycle overrides.
src/​Core/​src/​PublicAPI/​net-android/​PublicAPI.Unshipped.txt Clears migrated records and three removal directives.
src/​Core/​src/​PublicAPI/​net-android/​PublicAPI.Shipped.txt Records picker and web-view APIs; replaces obsolete picker signatures.
src/​Controls/​src/​Core/​PublicAPI/​netstandard/​PublicAPI.Unshipped.txt Clears four migrated finalizer records.
src/​Controls/​src/​Core/​PublicAPI/​netstandard/​PublicAPI.Shipped.txt Records four Controls finalizers as shipped.
src/​Controls/​src/​Core/​PublicAPI/​net/​PublicAPI.Unshipped.txt Clears four migrated finalizer records.
src/​Controls/​src/​Core/​PublicAPI/​net/​PublicAPI.Shipped.txt Records four Controls finalizers as shipped.
src/​Controls/​src/​Core/​PublicAPI/​net-windows/​PublicAPI.Unshipped.txt Clears four finalizers and one layout override.
src/​Controls/​src/​Core/​PublicAPI/​net-windows/​PublicAPI.Shipped.txt Records Controls finalizers and the structured-items layout override.
src/​Controls/​src/​Core/​PublicAPI/​net-maccatalyst/​PublicAPI.Unshipped.txt Clears four migrated finalizer records.
src/​Controls/​src/​Core/​PublicAPI/​net-maccatalyst/​PublicAPI.Shipped.txt Records four Controls finalizers as shipped.
src/​Controls/​src/​Core/​PublicAPI/​net-ios/​PublicAPI.Unshipped.txt Clears four migrated finalizer records.
src/​Controls/​src/​Core/​PublicAPI/​net-ios/​PublicAPI.Shipped.txt Records four Controls finalizers as shipped.
src/​Controls/​src/​Core/​PublicAPI/​net-android/​PublicAPI.Unshipped.txt Clears four migrated finalizer records.
src/​Controls/​src/​Core/​PublicAPI/​net-android/​PublicAPI.Shipped.txt Records four Controls finalizers as shipped.

Review effort: Balanced

@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review

Agent-authored independent reviewer assessment of exact head df5941ee0cd8422ec7d695f2344d3a6e05994fd4.

Conclusion: no new actionable findings (3/3 independent reviewers).

Reviewed all 18 authoritative changed files, the API-tracking consumers, and the corresponding declarations. The rollover preserves the effective API inventory and exact signature/nullability strings: 43 additions move into shipped inventories, and the three Android PickerHandler2 signatures removed from Shipped were already marked *REMOVED* in the previous Unshipped inventory. This PR does not introduce those source-level API changes.

Independent verification covered all 61 baseline pairs: nine changed pairs conserve their effective API sets, the other 52 pairs remain unchanged, all Unshipped files contain only #nullable enable, and there are no duplicate records or unmatched removals. Replaying the documented mark-shipped.ps1 workflow in an isolated fixture reproduced the head inventories; a second run was idempotent.

Local PublicApiType=Validate builds of Controls and Core passed for net11.0, netstandard2.0, netstandard2.1, and Windows. The neutral/netstandard builds reported zero warnings and errors; Windows reported 93 warnings, zero errors, and no RS00* public-API diagnostics. These checks cover the baseline migration contract; no runtime behavior or test files change.

Limitations: builds used installed SDK 11.0.100-rc.3.26522.148, not the repository-pinned RTM SDK. Android/iOS/MacCatalyst compilation and device/UI tests were not performed. The supplementary release-branch/package-history claims were not independently certified.

Read the existing review, all four issue comments, and the complete inline-comment inventory (zero entries). No existing-thread operation was performed; thread-resolution status is unknown.

Methodology: 3 independent reviewers with adversarial consensus.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

@kubaflo

kubaflo commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stamping as requested by @kubaflo; no code review performed.

@kubaflo
kubaflo merged commit 1cd1f13 into main Nov 4, 2026
174 of 184 checks passed
@kubaflo
kubaflo deleted the kubaflo-ship-public-api-baselines branch November 4, 2026 12:39

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — df5941ee Deployed Nov 3, 2026 by kubaflo via conclusion #2661
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants