Skip to content

.NET 11 RC2 docs: document C# UI and Avalonia template options - #3572

Merged
jfversluis merged 1 commit into
mainfrom
davidortinau-rc2-project-template-docs
Oct 13, 2026
Merged

jfversluis merged 1 commit into
mainfrom
davidortinau-rc2-project-template-docs

Conversation

@davidortinau

@davidortinau davidortinau commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add .NET 11 command-line alternatives to docs/get-started/first-app.md after the Visual Studio and Visual Studio Code tab group. Preserve both IDE workflows and all content for .NET 10 and earlier.

  • Document dotnet new maui -n MyApp --ui csharp, the generated App.cs, AppShell.cs, and MainPage.cs, and use of built-in MAUI APIs without an additional C# UI library.
  • Clarify that XAML remains the default. C# Shell and page UI still use App.xaml and XAML resource dictionaries for app resources.
  • Explain the XAML-only --sample-content option and the warning when combined with C# UI.
  • Document dotnet new maui-multiproject -n MyApp --avalonia as an optional desktop project for Windows, macOS, and Linux, not WebAssembly. Explain the explicit native-platform flags.
  • Update article date and AI-use metadata. No new IDE options, samples, or changes to other topics.

Source verification

Checked the packed-template source at the shipped MAUI cutoff d32b79928709cf53b671336dabd0caef5a679fc2, rather than relying only on PR descriptions.

Validation

  • Repository Markdown lint: zero issues.
  • Checked whitespace, metadata, local links and configured redirects, balanced moniker/device blocks, and placement outside both IDE tabs.
  • Confirmed that removing the .NET 11 section leaves the previous article body unchanged.
  • Ran both article commands with --dry-run on the installed RC2 templates. Confirmed C# output, retained XAML resources, desktop-only output for --avalonia, and the sample-content warning.
  • Checked --avalonia separately with --android, --ios, --macos, and --windows; each adds only the selected native project alongside the desktop project.
  • Reviewed the exact staged one-file diff before push: no findings.

No application project was created or built. Hosted Learn/MSDocs checks will provide publishing-build results.


Internal previews

File Preview link
docs/get-started/first-app.md Learn preview

Build report

Document the C# UI option, retained XAML resources, sample-content limits, and optional Avalonia desktop project. Preserve existing IDE workflows and older-version content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6fc0b99d-bdf9-4427-aee6-f1d815571260
Copilot AI balanced review requested due to automatic review settings October 8, 2026 21:44
@davidortinau
davidortinau requested a review from a team as a code owner October 8, 2026 21:44
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit bc011a5:

✅ Validation status: passed

File Status Preview URL Details
docs/get-started/first-app.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.

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

The documentation matches the verified .NET 11 RC2 template definitions and is correctly version-gated.

0 open findings

What changed in this PR

Adds .NET 11 command-line guidance for C# UI and Avalonia desktop templates while preserving existing IDE workflows.

Changes:

  • Documents C# UI template behavior and limitations.
  • Documents optional Avalonia desktop project generation.
  • Updates article metadata.
File Description
docs/​get-started/​first-app.md Adds versioned .NET 11 CLI template guidance.

🧠 Review effort: Balanced


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

@jfversluis
jfversluis merged commit eed538a into main Oct 13, 2026
9 checks passed
@jfversluis
jfversluis deleted the davidortinau-rc2-project-template-docs branch October 13, 2026 14:58
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