From bc744c6c86753a799d86e9f42bf2a0811890857a Mon Sep 17 00:00:00 2001 From: Alexandre Zollinger Chohfi Date: Fri, 18 Sep 2026 17:58:09 -0700 Subject: [PATCH] Reactor templates: bump to 0.1.0-preview.16 and raise WindowsAppSDK floor to 2.2.0 Updates the four Reactor dotnet-new templates for the 0.1.0-preview.16 release: reactorVersion 0.1.0-preview.14 -> 0.1.0-preview.16 windowsAppSdkVersion documented floor 2.1.3 -> 2.2.0 microsoft/microsoft-ui-reactor#1259 adopts ApplicationData.GetForUnpackaged(), a Windows App SDK 2.2.0 API, and raises Microsoft.UI.Reactor's dependency on Microsoft.WindowsAppSDK.WinUI to 2.2.1. Verified that commit is contained in the v0.1.0-preview.16 tag, and that Directory.Build.props at that tag declares WindowsAppSDKVersion 2.2.0 / WindowsAppSDKWinUIVersion 2.2.1. These templates reference the full Microsoft.WindowsAppSDK metapackage (not the lean WinUI sub-package) and scaffold packaged single-project MSIX apps, so the correct consumer floor is metapackage 2.2.0 - the first version whose WinUI dependency is 2.2.1 (2.1.3 -> WinUI 2.1.0; 2.2.0 -> WinUI 2.2.1). Both edits ship together because the mismatch they prevent is silent, not a restore error. Measured with a stub package carrying the post-#1259 dependency shape: pinning --wasdk-version 2.1.3 restores with exit code 0 and zero warnings, resolving Microsoft.WindowsAppSDK.WinUI 2.2.1 while the metapackage holds Microsoft.WindowsAppSDK.Runtime at exactly [2.1.3]. WinUI is only ever a transitive reference, so NuGet takes the highest floor and never reports NU1605; the result is 2.2.1 reference assemblies over a 2.1.3 runtime, which builds clean and fails at runtime. The same probe at 2.2.0 resolves Runtime 2.2.0. Since the toolchain raises no error, the description text is the only guardrail a user pinning explicitly will ever see. Validated by scaffolding all four templates from a locally packed template pack: each emits Microsoft.UI.Reactor and Microsoft.UI.Reactor.Devtools at 0.1.0-preview.16, Microsoft.WindowsAppSDK at the default '*', and a Package.appxmanifest. Also verified the explicit pin path (--wasdk-version 2.2.0 --reactor-version 0.1.0-preview.16). Restore/build validation is deferred to CI: 0.1.0-preview.16 is on nuget.org but has not yet mirrored to the internal package proxy reachable from this machine. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../reactor-blank-app/.template.config/template.json | 4 ++-- .../templates/reactor-mvu-app/.template.config/template.json | 4 ++-- .../reactor-navigation-app/.template.config/template.json | 4 ++-- .../reactor-tabview-app/.template.config/template.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dev/Templates/Dotnet/templates/reactor-blank-app/.template.config/template.json b/dev/Templates/Dotnet/templates/reactor-blank-app/.template.config/template.json index ad650192fc..a3962f67e0 100644 --- a/dev/Templates/Dotnet/templates/reactor-blank-app/.template.config/template.json +++ b/dev/Templates/Dotnet/templates/reactor-blank-app/.template.config/template.json @@ -50,7 +50,7 @@ "reactorVersion": { "type": "parameter", "datatype": "text", - "defaultValue": "0.1.0-preview.14", + "defaultValue": "0.1.0-preview.16", "replaces": "$ReactorVersion$", "description": "Microsoft.UI.Reactor (and Microsoft.UI.Reactor.Devtools) NuGet version to reference." }, @@ -59,7 +59,7 @@ "datatype": "text", "defaultValue": "*", "replaces": "$WindowsAppSdkVersion$", - "description": "Microsoft.WindowsAppSDK NuGet version. Requires 2.1.3 or later; use * for the latest stable." + "description": "Microsoft.WindowsAppSDK NuGet version. Requires 2.2.0 or later; use * for the latest stable." }, "windowsSdkBuildToolsVersion": { "type": "parameter", diff --git a/dev/Templates/Dotnet/templates/reactor-mvu-app/.template.config/template.json b/dev/Templates/Dotnet/templates/reactor-mvu-app/.template.config/template.json index 037ba22ed4..a5523cb911 100644 --- a/dev/Templates/Dotnet/templates/reactor-mvu-app/.template.config/template.json +++ b/dev/Templates/Dotnet/templates/reactor-mvu-app/.template.config/template.json @@ -50,7 +50,7 @@ "reactorVersion": { "type": "parameter", "datatype": "text", - "defaultValue": "0.1.0-preview.14", + "defaultValue": "0.1.0-preview.16", "replaces": "$ReactorVersion$", "description": "Microsoft.UI.Reactor (and Microsoft.UI.Reactor.Devtools) NuGet version to reference." }, @@ -59,7 +59,7 @@ "datatype": "text", "defaultValue": "*", "replaces": "$WindowsAppSdkVersion$", - "description": "Microsoft.WindowsAppSDK NuGet version. Requires 2.1.3 or later; use * for the latest stable." + "description": "Microsoft.WindowsAppSDK NuGet version. Requires 2.2.0 or later; use * for the latest stable." }, "windowsSdkBuildToolsVersion": { "type": "parameter", diff --git a/dev/Templates/Dotnet/templates/reactor-navigation-app/.template.config/template.json b/dev/Templates/Dotnet/templates/reactor-navigation-app/.template.config/template.json index 3af0e09b60..ac9a031c14 100644 --- a/dev/Templates/Dotnet/templates/reactor-navigation-app/.template.config/template.json +++ b/dev/Templates/Dotnet/templates/reactor-navigation-app/.template.config/template.json @@ -50,7 +50,7 @@ "reactorVersion": { "type": "parameter", "datatype": "text", - "defaultValue": "0.1.0-preview.14", + "defaultValue": "0.1.0-preview.16", "replaces": "$ReactorVersion$", "description": "Microsoft.UI.Reactor (and Microsoft.UI.Reactor.Devtools) NuGet version to reference." }, @@ -59,7 +59,7 @@ "datatype": "text", "defaultValue": "*", "replaces": "$WindowsAppSdkVersion$", - "description": "Microsoft.WindowsAppSDK NuGet version. Requires 2.1.3 or later; use * for the latest stable." + "description": "Microsoft.WindowsAppSDK NuGet version. Requires 2.2.0 or later; use * for the latest stable." }, "windowsSdkBuildToolsVersion": { "type": "parameter", diff --git a/dev/Templates/Dotnet/templates/reactor-tabview-app/.template.config/template.json b/dev/Templates/Dotnet/templates/reactor-tabview-app/.template.config/template.json index b11d6294a3..423f744f53 100644 --- a/dev/Templates/Dotnet/templates/reactor-tabview-app/.template.config/template.json +++ b/dev/Templates/Dotnet/templates/reactor-tabview-app/.template.config/template.json @@ -50,7 +50,7 @@ "reactorVersion": { "type": "parameter", "datatype": "text", - "defaultValue": "0.1.0-preview.14", + "defaultValue": "0.1.0-preview.16", "replaces": "$ReactorVersion$", "description": "Microsoft.UI.Reactor (and Microsoft.UI.Reactor.Devtools) NuGet version to reference." }, @@ -59,7 +59,7 @@ "datatype": "text", "defaultValue": "*", "replaces": "$WindowsAppSdkVersion$", - "description": "Microsoft.WindowsAppSDK NuGet version. Requires 2.1.3 or later; use * for the latest stable." + "description": "Microsoft.WindowsAppSDK NuGet version. Requires 2.2.0 or later; use * for the latest stable." }, "windowsSdkBuildToolsVersion": { "type": "parameter",