Skip to content

[api] Mark .NET 11 GA APIs as shipped on main - #39807

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-net11-main-api-baselines
Nov 2, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-net11-main-api-baselines

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 2, 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

Independently mark the .NET 11 GA public APIs as shipped on main, preserving later API changes as unshipped. This is a standalone main baseline change, not a port or cherry-pick of another PR. It does not depend on #39474 being finalized or merged; that release-targeted PR remains separate and unchanged.

The GA boundary is the stable-packaging snapshot e818662f833cb7a9ecd7c3f7fc95f2a72cfb0359 (#39473). Independently run the repository's eng/scripts/mark-shipped.ps1 on isolated copies of that snapshot's baseline pairs that still exist and have pending GA APIs. Compare the resulting API sets against main, retaining the relative order of existing shipped records and subsequent unshipped entries. No baseline file from another PR is needed to derive or validate this change.

  • Update 50 baseline pairs (100 files) to record the GA shipped API set.
  • Keep all 45 post-GA additions unshipped. A blanket rollover of current main would incorrectly mark those later APIs as GA.
  • Record three post-GA Android PickerHandler2 removals explicitly in unshipped. The GA signatures using MauiMaterialPicker become shipped; their MauiMaterialPickerTextInputLayout replacements remain unshipped.
  • Preserve the effective main API set, existing surviving shipped order, later-unshipped order, and analyzer-generated nullable-oblivious markers. Do not retain removal directives in shipped files.
  • Leave the other 11 surviving baseline pairs byte-identical and do not recreate any deleted inventories, including Tizen.

The branch starts at main 9f07f6e79380c4d876a6537b26c791e2f2da7ee6. Refreshed main 8ba0783db96fe19042891d27cc162b6416de0b90 has identical baseline files, and the independent validation was repeated against it. Independently regenerated GA API sets match the existing patch, so no additional baseline edits or history rewriting were needed.

No product code, versioning, pipeline, dependency/feed, internal mirror, inflight, .NET 10 servicing, or release-ref changes. This is separate from main housekeeping #39805 and inflight #39806. See docs/design/APIChangeTracking.md for baseline tracking and rollover conventions.

Validation:

api_args=(-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)
dotnet build src/Essentials/src/Essentials.csproj -t:Rebuild "${api_args[@]}"
dotnet build src/Graphics/src/Graphics/Graphics.csproj --no-restore -t:Rebuild "${api_args[@]}"
git diff --check HEAD~1 HEAD

Both neutral Release rebuilds passed, 0 warnings and 0 errors, with PublicApiType=Validate. The initial Graphics --no-restore attempt reported NETSDK1004 (missing assets); the Essentials build restored the required assets before both final rebuilds passed. A further Essentials --no-restore -t:Rebuild with normal verbosity confirmed actual compiler execution, public-API analyzer references, and baseline additional files for both projects. The commit and compiler-validated baseline content are unchanged by this PR clarification. git diff --check HEAD~1 HEAD passed again.

Independent session-artifact check:

python3 /Users/kubaflo/.copilot/session-state/28e76aab-35f9-40d4-b195-d7948511195a/files/validate-independent-main-baseline.py

Passed: independently executed mark-shipped.ps1 against the stable GA snapshot; exact resulting shipped API sets; effective API conservation; no duplicates or unmatched removals; surviving shipped and later-unshipped order; 45 later additions and 3 later removals; 11 untouched surviving pairs; all 10 baseline pairs deleted since the GA snapshot still absent; exactly 100 baseline files changed; refreshed main baseline inputs unchanged. The validation script and isolated generated files are session artifacts, not repository changes. Open/recently merged shipped-baseline changes were checked before publication; no competing main rollover was found.

Limitations / merge requirements: Local builds used installed SDK 11.0.100-preview.6.26359.118; pinned 11.0.100-rtm.26514.118 is unavailable locally. These are representative neutral analyzer checks, not RTM or full-platform certification. Native Android/Apple/Windows builds, device/UI tests, signing/packaging, and the full CI suite were not run locally. Required CI and human review still apply. The PR remains a draft; no merge is requested here. There is no cross-PR merge dependency.

Issues Fixed

N/A - standalone .NET 11 GA API baseline bookkeeping on main; no bug issue is closed.

Preserve post-GA APIs in Unshipped, record replaced GA Android PickerHandler2 signatures as removed, and leave deleted Tizen inventories absent. Deliberate main port of #39474; GA acceptance remains a merge gate.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 28e76aab-35f9-40d4-b195-d7948511195a
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 2, 2026 10:40 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 2, 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 -- 39807

Or

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

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 2, 2026 10:40 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo kubaflo changed the title [api] Port .NET 11 GA shipped baselines to main [api] Mark .NET 11 GA APIs as shipped on main Nov 2, 2026
@kubaflo

kubaflo commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@kubaflo
kubaflo marked this pull request as ready for review November 2, 2026 14:26
Copilot AI balanced review requested due to automatic review settings November 2, 2026 14:26

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.

🔵 Needs a closer look

The GA/post-GA boundary remains unverified because the historical snapshot request timed out and supplied diffs cover only 60 of the 100 baseline files.

No open issues 🎉

What changed in this PR

This PR records the .NET 11 GA API baseline on main, keeping later API changes unshipped. It updates API-tracking inventories without changing product implementations and remains separate from the release-branch rollover in #39474.

Changes:

  • Move GA API records into shipped inventories across Graphics, Essentials, Core, Maps, XAML, and BlazorWebView.
  • Apply existing removal directives during rollover while preserving signature and nullability annotations.
  • Retain post-GA changes in unshipped inventories rather than rolling over all of current main.
File Description
src/​Graphics/​src/​Graphics/​PublicAPI/​netstandard/​PublicAPI.Unshipped.txt Clear rolled-over Color entries.
src/​Graphics/​src/​Graphics/​PublicAPI/​netstandard/​PublicAPI.Shipped.txt Record GA Color APIs for .NET Standard.
src/​Graphics/​src/​Graphics/​PublicAPI/​net/​PublicAPI.Unshipped.txt Clear rolled-over Color entries.
src/​Graphics/​src/​Graphics/​PublicAPI/​net/​PublicAPI.Shipped.txt Record GA Color APIs for .NET.
src/​Graphics/​src/​Graphics/​PublicAPI/​net-windows/​PublicAPI.Unshipped.txt Clear rolled-over Color entries.
src/​Graphics/​src/​Graphics/​PublicAPI/​net-windows/​PublicAPI.Shipped.txt Record GA Color APIs for Windows.
src/​Graphics/​src/​Graphics/​PublicAPI/​net-macos/​PublicAPI.Unshipped.txt Clear rolled-over Color entries.
src/​Graphics/​src/​Graphics/​PublicAPI/​net-macos/​PublicAPI.Shipped.txt Record GA Color APIs for macOS.
src/​Graphics/​src/​Graphics/​PublicAPI/​net-maccatalyst/​PublicAPI.Unshipped.txt Clear rolled-over Color entries.
src/​Graphics/​src/​Graphics/​PublicAPI/​net-maccatalyst/​PublicAPI.Shipped.txt Record GA Color APIs for Mac Catalyst.
src/​Graphics/​src/​Graphics/​PublicAPI/​net-ios/​PublicAPI.Unshipped.txt Clear rolled-over Color entries.
src/​Graphics/​src/​Graphics/​PublicAPI/​net-ios/​PublicAPI.Shipped.txt Record GA Color APIs for iOS.
src/​Graphics/​src/​Graphics/​PublicAPI/​net-android/​PublicAPI.Unshipped.txt Clear rolled-over Color entries.
src/​Graphics/​src/​Graphics/​PublicAPI/​net-android/​PublicAPI.Shipped.txt Record GA Color APIs for Android.
src/​Essentials/​src/​PublicAPI/​netstandard/​PublicAPI.Unshipped.txt Clear GA entries and applied removal directives.
src/​Essentials/​src/​PublicAPI/​net/​PublicAPI.Unshipped.txt Clear GA entries and applied removal directives.
src/​Essentials/​src/​PublicAPI/​net-windows/​PublicAPI.Unshipped.txt Clear GA entries, including Windows activation APIs.
src/​Essentials/​src/​PublicAPI/​net-maccatalyst/​PublicAPI.Unshipped.txt Clear GA entries, including notification permissions.
src/​Essentials/​src/​PublicAPI/​net-ios/​PublicAPI.Unshipped.txt Clear GA entries, including notification permissions.
src/​Essentials/​src/​PublicAPI/​net-android/​PublicAPI.Unshipped.txt Clear GA entries, including media recovery APIs.
src/​Core/​src/​PublicAPI/​netstandard2.0/​PublicAPI.Unshipped.txt Clear rolled-over Core API entries.
src/​Core/​src/​PublicAPI/​netstandard/​PublicAPI.Unshipped.txt Clear rolled-over Core API entries.
src/​Core/​src/​PublicAPI/​net/​PublicAPI.Unshipped.txt Clear rolled-over Core API entries.
src/​Core/​src/​PublicAPI/​net-windows/​PublicAPI.Unshipped.txt Clear GA Core and Windows-specific entries.
src/​Core/​src/​PublicAPI/​net-maccatalyst/​PublicAPI.Unshipped.txt Remove GA entries; retain two later overrides.
src/​Core/​maps/​src/​PublicAPI/​netstandard/​PublicAPI.Unshipped.txt Clear rolled-over map contracts and handlers.
src/​Core/​maps/​src/​PublicAPI/​net/​PublicAPI.Unshipped.txt Clear rolled-over map contracts and handlers.
src/​Core/​maps/​src/​PublicAPI/​net-windows/​PublicAPI.Unshipped.txt Clear GA map and Windows handler entries.
src/​Core/​maps/​src/​PublicAPI/​net-maccatalyst/​PublicAPI.Unshipped.txt Clear GA map and native clustering entries.
src/​Core/​maps/​src/​PublicAPI/​net-ios/​PublicAPI.Unshipped.txt Clear GA map and native clustering entries.
src/​Core/​maps/​src/​PublicAPI/​net-android/​PublicAPI.Unshipped.txt Clear GA map and Android styling entries.
src/​Controls/​src/​Xaml/​PublicAPI/​netstandard/​PublicAPI.Unshipped.txt Clear rolled-over XAML entries.
src/​Controls/​src/​Xaml/​PublicAPI/​netstandard/​PublicAPI.Shipped.txt Record extension properties and component registry APIs.
src/​Controls/​src/​Xaml/​PublicAPI/​net/​PublicAPI.Unshipped.txt Clear rolled-over XAML entries.
src/​Controls/​src/​Xaml/​PublicAPI/​net/​PublicAPI.Shipped.txt Record GA XAML and incremental Hot Reload APIs.
src/​Controls/​src/​Xaml/​PublicAPI/​net-windows/​PublicAPI.Unshipped.txt Clear rolled-over XAML entries.
src/​Controls/​src/​Xaml/​PublicAPI/​net-windows/​PublicAPI.Shipped.txt Record GA XAML APIs for Windows.
src/​Controls/​src/​Xaml/​PublicAPI/​net-maccatalyst/​PublicAPI.Unshipped.txt Clear rolled-over XAML entries.
src/​Controls/​src/​Xaml/​PublicAPI/​net-maccatalyst/​PublicAPI.Shipped.txt Record GA XAML APIs for Mac Catalyst.
src/​Controls/​src/​Xaml/​PublicAPI/​net-ios/​PublicAPI.Unshipped.txt Clear rolled-over XAML entries.
src/​Controls/​src/​Xaml/​PublicAPI/​net-ios/​PublicAPI.Shipped.txt Record GA XAML APIs for iOS.
src/​Controls/​src/​Xaml/​PublicAPI/​net-android/​PublicAPI.Unshipped.txt Clear rolled-over XAML entries.
src/​Controls/​src/​Xaml/​PublicAPI/​net-android/​PublicAPI.Shipped.txt Record GA XAML APIs for Android.
src/​Controls/​Maps/​src/​PublicAPI/​netstandard/​PublicAPI.Unshipped.txt Clear GA map-control properties and events.
src/​Controls/​Maps/​src/​PublicAPI/​net/​PublicAPI.Unshipped.txt Clear GA map-control properties and events.
src/​Controls/​Maps/​src/​PublicAPI/​net-windows/​PublicAPI.Unshipped.txt Clear GA map-control properties and events.
src/​Controls/​Maps/​src/​PublicAPI/​net-maccatalyst/​PublicAPI.Unshipped.txt Clear GA map-control properties and events.
src/​Controls/​Maps/​src/​PublicAPI/​net-ios/​PublicAPI.Unshipped.txt Clear GA map-control properties and events.
src/​Controls/​Maps/​src/​PublicAPI/​net-android/​PublicAPI.Unshipped.txt Clear GA map-control properties and events.
src/​BlazorWebView/​src/​Wpf/​PublicAPI.Unshipped.txt Clear GA entries and applied WebView removal directives.
src/​BlazorWebView/​src/​Wpf/​PublicAPI.Shipped.txt Record IWebView2 signatures and composition-control options.
src/​BlazorWebView/​src/​Maui/​PublicAPI/​net/​PublicAPI.Unshipped.txt Clear rolled-over BlazorWebView entries.
src/​BlazorWebView/​src/​Maui/​PublicAPI/​net/​PublicAPI.Shipped.txt Record GA handler, caching, dispatcher, and Hot Reload APIs.
src/​BlazorWebView/​src/​Maui/​PublicAPI/​net-windows/​PublicAPI.Unshipped.txt Clear rolled-over BlazorWebView entries.
src/​BlazorWebView/​src/​Maui/​PublicAPI/​net-windows/​PublicAPI.Shipped.txt Record GA BlazorWebView APIs for Windows.
src/​BlazorWebView/​src/​Maui/​PublicAPI/​net-maccatalyst/​PublicAPI.Unshipped.txt Clear rolled-over BlazorWebView entries.
src/​BlazorWebView/​src/​Maui/​PublicAPI/​net-maccatalyst/​PublicAPI.Shipped.txt Record GA BlazorWebView APIs for Mac Catalyst.
src/​BlazorWebView/​src/​Maui/​PublicAPI/​net-ios/​PublicAPI.Unshipped.txt Clear rolled-over BlazorWebView entries.
src/​BlazorWebView/​src/​Maui/​PublicAPI/​net-ios/​PublicAPI.Shipped.txt Record GA BlazorWebView APIs for iOS.
src/​BlazorWebView/​src/​Maui/​PublicAPI/​net-android/​PublicAPI.Unshipped.txt Clear GA BlazorWebView entries, including ConnectHandler.

Review effort: Balanced

@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 3bfd980 into main Nov 2, 2026
169 of 183 checks passed
@kubaflo
kubaflo deleted the kubaflo-net11-main-api-baselines branch November 2, 2026 19:19
@github-actions github-actions Bot added this to the .NET 11.0-rc2 milestone Nov 2, 2026
kubaflo added a commit that referenced this pull request Nov 4, 2026
<!-- 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!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

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
82b9930` — 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.

```bash
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.

```bash
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

<!-- 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. -->

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

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 23b4e34a-9429-4bcb-9c4f-c6fff6d56dbf

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — f7697b3a Deployed Nov 2, 2026 by kubaflo via conclusion #2616
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.

3 participants