Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions dev/Templates/Dotnet/Test-DotnetNewTemplates.ps1
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

<#+
<#
.SYNOPSIS
Validates the WinUI 3 dotnet new template pack end-to-end.

.DESCRIPTION
Builds (or consumes) the template NuGet package, reinstalls it locally, and
scaffolds every WinUI 3 project and item template. Each generated project is
built, and app templates are optionally launched via dotnet run using the
recommended WinAppSDK self-contained properties.
built; app templates build with -p:WindowsPackageType=None, so the packaged
(single-project MSIX) path is not exercised. When launching is enabled, app
templates are started directly from the built executable rather than via
dotnet run, so they run without MSIX package identity.

.PARAMETER PackagePath
Path to an existing Microsoft.WindowsAppSDK.WinUI.CSharp.Templates .nupkg. When
Expand Down Expand Up @@ -680,9 +682,10 @@ try {
# `dotnet test`. Validate it as an App so we still confirm the
# template builds cleanly.
@{ ShortName = 'winui-unittest'; Kind = 'App' },
# Reactor (Microsoft.UI.Reactor) app templates: pure C#, unpackaged,
# dotnet-new-only. They build with the same App path below
# (-p:WindowsPackageType=None), and their .csproj already sets it.
# Reactor (Microsoft.UI.Reactor) app templates: pure C#, dotnet-new-only.
# Like the other app templates they are packaged (single-project MSIX),
# and they build through the same App path below, which passes
# -p:WindowsPackageType=None; the .csproj itself does not set it.
@{ ShortName = 'reactor'; Kind = 'App' },
@{ ShortName = 'reactor-mvu'; Kind = 'App' },
@{ ShortName = 'reactor-navview'; Kind = 'App' },
Expand Down
Loading