Add Reactor (Microsoft.UI.Reactor) dotnet new templates#6620
Open
azchohfi wants to merge 4 commits into
Open
Conversation
Adds four Reactor project templates to the Microsoft.WindowsAppSDK.WinUI.CSharp.Templates dotnet-new pack, mirroring the WinUI templates but for Microsoft.UI.Reactor (pure C#, no XAML): - Reactor Blank App (reactor, reactor-blank) - Reactor MVU App (reactor-mvu) - Reactor NavigationView (reactor-navview) - Reactor TabView App (reactor-tabview) Wired into dev/Templates/templates.props via the DotnetNewOnlyProjectTemplate slot (dotnet-new only, no VSIX, no manifest; Reactor apps run unpackaged). Each shares a common csproj referencing Microsoft.UI.Reactor + Microsoft.WindowsAppSDK, bundles the WinAppSDK runtime self-contained, and enables the Debug-only Reactor devtools surface. README and Test-DotnetNewTemplates.ps1 updated to document and validate the new templates. Validated end-to-end: pack -> install -> dotnet new -> build (Debug + Release) for all four templates. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
TitleBar(...).Icon(FontIcon(...)) threw System.ArgumentException (E_INVALIDARG) at runtime when Reactor set TitleBar.IconSource on Windows App SDK 2.1.3, so the scaffolded Blank, MVU, and TabView apps crashed on launch. The glyph was only a placeholder, so drop the icon; the title bar still shows the title text and all four templates now launch cleanly (validated with dotnet run). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
microsoft/microsoft-ui-reactor#855 fixes the IconResolver FontSize=NaN crash (FontIcon in an IconSource slot without an explicit size threw ArgumentException from TitleBar.set_IconSource). That fix ships in Microsoft.UI.Reactor 0.1.0-preview.12, so restore the placeholder title-bar app-mark icon in the Blank, MVU, and TabView templates and bump the default reactorVersion 0.1.0-preview.11 -> 0.1.0-preview.12 across all four templates. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
azchohfi
marked this pull request as ready for review
July 15, 2026 05:01
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds four Reactor (
Microsoft.UI.Reactor) project templates to the existingMicrosoft.WindowsAppSDK.WinUI.CSharp.Templatesdotnet newpack, mirroring the WinUI templates from #6407 but for Reactor's declarative, pure-C# (no XAML) model.reactor,reactor-blankreactor-mvuUseReducerreactor-navviewNavigationViewshell with multiple pagesreactor-tabviewTabViewshell with multiple tabsWhat changed
dev/Templates/templates.props— four new rows in theDotnetNewOnlyProjectTemplateslot (dotnet-new only, no VSIX). Reactor apps run unpackaged, so there is noPackage.appxmanifest(RenameManifestFromleft unset). This reuses the repo's existing single-source-of-truth pack pipeline.dev/Templates/Source/ProjectTemplates/Desktop/CSharp/Reactor*— the app sources: a sharedProjectTemplate.csproj(referencesMicrosoft.UI.Reactor+Microsoft.WindowsAppSDK,WindowsAppSDKSelfContained, Debug-only Reactor devtools), a single-fileApp.csper pattern, andProperties/launchSettings.json(default + Devtools F5 profiles).dev/Templates/Dotnet/templates/reactor-*— the.template.configfor each (template.json,dotnetcli.host.json,ide.host.json,icon.png). Defaults: Reactor0.1.0-preview.12, Windows App SDK2.1.3,net10.0; overridable via--reactor-version/--wasdk-version.dev/Templates/Dotnet/README.md— documents the new Reactor templates.dev/Templates/Dotnet/Test-DotnetNewTemplates.ps1— adds the four to the scaffold/build validation loop.Validation
Validated end-to-end against the live
Microsoft.UI.Reactor 0.1.0-preview.12:dotnet pack→dotnet new install→ all four register →dotnet new→dotnet build(Debug + Release) →dotnet run. All four launch cleanly, including the title-bar app-mark icon (which relies on theIconResolverfix from microsoft/microsoft-ui-reactor#855, shipped in preview.12).A Microsoft employee must use
/azp runto validate using the PR pipelines.