Skip to content

Docs (.NET 11): update MAUI runtime and compilation guidance - #3511

Merged
jfversluis merged 14 commits into
dotnet:mainfrom
vitek-karas:vitkaras-microsoft-doc-001-maui-runtime-guidance
Sep 16, 2026
Merged

jfversluis merged 14 commits into
dotnet:mainfrom
vitek-karas:vitkaras-microsoft-doc-001-maui-runtime-guidance

Conversation

@vitek-karas

@vitek-karas vitek-karas commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Updates the .NET MAUI runtime and compilation guidance for .NET 11 while
preserving the existing .NET 10 and earlier Mono guidance.

  • Documents CoreCLR as the supported runtime for normal .NET 11 MAUI apps.
  • Clarifies that NativeAOT is an explicit, opt-in publishing alternative.
  • Removes .NET 11 Mono and UseMonoRuntime guidance.
  • Documents Android .NET 11 platform and runtime behavior:
    • Android API 24 or higher.
    • Android x86 is unsupported; arm32 remains supported.
    • Release builds use composite partial ReadyToRun with JIT support.
    • Full ReadyToRun is enabled with MauiEnableFullReadyToRun=true.
  • Documents Apple CoreCLR behavior:
    • ReadyToRun is used with the CoreCLR interpreter.
    • Apple device targets do not use JIT.
  • Clarifies NativeAOT, trimming, ReadyToRun, diagnostics, and compilation
    strategy comparisons.
  • Updates the .NET 11 release notes.

Migration guidance

  • Existing .NET 10 and earlier Mono guidance is unchanged.
  • Projects targeting .NET 11 must not set UseMonoRuntime=true.
  • NativeAOT must be explicitly enabled with PublishAot=true and takes effect
    during dotnet publish.
  • NativeAOT requires full trimming and does not use a JIT or interpreter.

The standalone interpreter, profiling, and detailed NativeAOT pages remain
outside this focused update.

Validation

  • Built and previewed the documentation locally with DocFX.
  • Checked moniker block balance and diff whitespace.

Internal previews

File Preview link
docs/deployment/runtimes-compilation.md Learn preview
docs/supported-platforms.md Learn preview
docs/whats-new/dotnet-11.md Learn preview

Build report

Copilot AI lite review requested due to automatic review settings September 8, 2026 17:03
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit f3bf8b7:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
❌Error Details

  • [Error: CannotMergeCommit] Cannot merge commit f3bf8b7f70a782f930b682affae5806ce666cad8 in branch vitkaras-microsoft-doc-001-maui-runtime-guidance of repository https://github.com/vitek-karas/docs-maui into branch main (commit 4ec3cc3bab4dc75c7e675cc99f4f2b8247ba21d3). Please follow this documentation: https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/ to use git.exe to resolve you content conflicts locally and then push to remote.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

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.

🟡 Changes recommended

There are a few documentation consistency/clarity issues (notably trimming property guidance and platform/runtime table alignment) that could mislead readers if merged as-is.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates .NET MAUI documentation to reflect the .NET 11 runtime/compilation model (CoreCLR-only by default, NativeAOT as opt-in) while keeping .NET 10-and-earlier guidance versioned via monikers.

Changes:

  • Updates .NET 11 “what’s new” to state CoreCLR is the only supported runtime (and refines Android/Apple runtime notes).
  • Updates supported platform guidance to call out Android API 24+ for .NET 11.
  • Reworks “Runtimes and compilation” to add .NET 11-specific CoreCLR/NativeAOT/ReadyToRun/trimming explanations with monikered sections.
File summaries
File Description
docs/whats-new/dotnet-11.md Updates .NET 11 release notes to reflect CoreCLR-only runtime support and new Android/Apple runtime behavior details.
docs/supported-platforms.md Updates .NET 11 platform requirements note (Android API 24+).
docs/deployment/runtimes-compilation.md Refactors runtime/compilation guidance with monikers to distinguish <=.NET 10 (Mono) vs .NET 11 (CoreCLR/NativeAOT) behavior and comparisons.
Review details

Suppressed comments (2)

docs/deployment/runtimes-compilation.md:499

  • The .NET 11 MSBuild property reference table omits PublishTrimmed, even though the page discusses trimming behavior and earlier sections use trimming terminology. Adding PublishTrimmed here would make it easier for readers to discover how to explicitly enable/disable trimming in addition to setting TrimMode.
| Property | Description | Default |
|---|---|---|
| `PublishAot` | Enable NativeAOT compilation during `dotnet publish`. | `false` |
| `MauiEnableFullReadyToRun` | Enable full ReadyToRun for Android CoreCLR apps. | `false` |
| `TrimMode` | Set trimming aggressiveness for non-NativeAOT builds. | `partial` |

docs/deployment/runtimes-compilation.md:305

  • This .NET 11 runtime table includes a tvOS row, but docs/supported-platforms.md describes supported .NET MAUI app platforms as Android, iOS, Mac Catalyst, and Windows. Please align these pages: either add tvOS to the supported platforms list (if MAUI apps are supported there) or remove/clarify tvOS here so readers don't infer unsupported targets are valid.
| **Mac Catalyst** | CoreCLR + composite ReadyToRun + interpreter | CoreCLR + composite ReadyToRun + interpreter |
| **tvOS** | CoreCLR + composite ReadyToRun + interpreter | CoreCLR + composite ReadyToRun + interpreter |
| **Windows** | CoreCLR + JIT | CoreCLR + JIT + ReadyToRun |
  • Files reviewed: 3/3 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/whats-new/dotnet-11.md Resolved
vitek-karas and others added 2 commits September 8, 2026 22:14
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@vitek-karas
vitek-karas force-pushed the vitkaras-microsoft-doc-001-maui-runtime-guidance branch from f3bf8b7 to 595f053 Compare September 8, 2026 20:15
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 595f053:

✅ Validation status: passed

File Status Preview URL Details
docs/deployment/runtimes-compilation.md ✅Succeeded View (>=net-maui-8.0)
docs/supported-platforms.md ✅Succeeded View (>=net-maui-8.0)
docs/whats-new/dotnet-11.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@vitek-karas
vitek-karas marked this pull request as ready for review September 8, 2026 20:52
@vitek-karas
vitek-karas requested a review from a team as a code owner September 8, 2026 20:52
@vitek-karas

Copy link
Copy Markdown
Member Author

@rolfbjarne @jonathanpeppers @simonrozsival could you please review this?

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 2650fad:

✅ Validation status: passed

File Status Preview URL Details
docs/deployment/runtimes-compilation.md ✅Succeeded View (>=net-maui-8.0)
docs/supported-platforms.md ✅Succeeded View (>=net-maui-8.0)
docs/whats-new/dotnet-11.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

@rolfbjarne rolfbjarne 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.

Looks great, just a few minor suggestions, feel free to take them or leave them.

Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/deployment/runtimes-compilation.md Resolved
jonathanpeppers and others added 3 commits September 10, 2026 08:12
Document CoreCLR, ReadyToRun, interpreter, and NativeAOT behavior for .NET 11 while preserving .NET 10 guidance.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Clarify version ranges, NativeAOT build cost, Apple ReadyToRun defaults, and trimming properties.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the established composite partial and composite full word order while retaining the clarified platform defaults.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
jonathanpeppers and others added 3 commits September 10, 2026 08:36
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ptions

Refine .NET 11 runtime guidance on top of dotnet#3511
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit f74d535:

✅ Validation status: passed

File Status Preview URL Details
docs/deployment/runtimes-compilation.md ✅Succeeded View (>=net-maui-8.0)
docs/supported-platforms.md ✅Succeeded View (>=net-maui-8.0)
docs/whats-new/dotnet-11.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 3f5d8e8:

✅ Validation status: passed

File Status Preview URL Details
docs/deployment/runtimes-compilation.md ✅Succeeded View (>=net-maui-8.0)
docs/supported-platforms.md ✅Succeeded View (>=net-maui-8.0)
docs/whats-new/dotnet-11.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit f6ff6e7:

✅ Validation status: passed

File Status Preview URL Details
docs/deployment/runtimes-compilation.md ✅Succeeded View (>=net-maui-8.0)
docs/supported-platforms.md ✅Succeeded View (>=net-maui-8.0)
docs/whats-new/dotnet-11.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

@vitek-karas

Copy link
Copy Markdown
Member Author

@jonathanpeppers could you please review this - so that I can merge it. I have other work which somewhat depends on this.

Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/deployment/runtimes-compilation.md Resolved
Comment thread docs/whats-new/dotnet-11.md Resolved
vitek-karas and others added 2 commits September 14, 2026 13:39
Co-authored-by: Jonathan Peppers <jonathan.peppers@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit ebe693d:

✅ Validation status: passed

File Status Preview URL Details
docs/deployment/runtimes-compilation.md ✅Succeeded View (>=net-maui-8.0)
docs/supported-platforms.md ✅Succeeded View (>=net-maui-8.0)
docs/whats-new/dotnet-11.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit a3c58e1:

✅ Validation status: passed

File Status Preview URL Details
docs/deployment/runtimes-compilation.md ✅Succeeded View (>=net-maui-8.0)
docs/supported-platforms.md ✅Succeeded View (>=net-maui-8.0)
docs/whats-new/dotnet-11.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 4976b38:

✅ Validation status: passed

File Status Preview URL Details
docs/deployment/runtimes-compilation.md ✅Succeeded View (>=net-maui-8.0)
docs/supported-platforms.md ✅Succeeded View (>=net-maui-8.0)
docs/whats-new/dotnet-11.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

@jfversluis
jfversluis merged commit bd80c5e into dotnet:main Sep 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants