Repository navigation
.NET 11 RC2 docs: document C# UI and Avalonia template options - #3572
Conversation
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
|
Learn Build status updates of commit bc011a5: ✅ Validation status: passed
For more details, please refer to the build report. |
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
There was a problem hiding this comment.
🟢 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.
Summary
Add .NET 11 command-line alternatives to
docs/get-started/first-app.mdafter the Visual Studio and Visual Studio Code tab group. Preserve both IDE workflows and all content for .NET 10 and earlier.dotnet new maui -n MyApp --ui csharp, the generatedApp.cs,AppShell.cs, andMainPage.cs, and use of built-in MAUI APIs without an additional C# UI library.App.xamland XAML resource dictionaries for app resources.--sample-contentoption and the warning when combined with C# UI.dotnet new maui-multiproject -n MyApp --avaloniaas an optional desktop project for Windows, macOS, and Linux, not WebAssembly. Explain the explicit native-platform flags.Source verification
Checked the packed-template source at the shipped MAUI cutoff
d32b79928709cf53b671336dabd0caef5a679fc2, rather than relying only on PR descriptions.Validation
--dry-runon the installed RC2 templates. Confirmed C# output, retained XAML resources, desktop-only output for--avalonia, and the sample-content warning.--avaloniaseparately with--android,--ios,--macos, and--windows; each adds only the selected native project alongside the desktop project.No application project was created or built. Hosted Learn/MSDocs checks will provide publishing-build results.
Internal previews
Build report