Repository navigation
Add packaging options to .NET WinUI and Reactor templates - #6905
Merged
Morten Nielsen (dotMorten) merged 4 commits intoOct 30, 2026
Merged
Conversation
- Add Packaged/Unpackaged selection, defaulting to Packaged. - Place Packaging and publisher fields last; disable publishers when unpackaged. - Exclude MSIX-only assets and settings when unpackaged. - Generate matching launch profiles and omit WinApp package reference from unpackaged projects. - Add scaffold checks for default, packaged, and unpackaged variants.
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
Morten Nielsen (dotMorten)
requested review from
Alexandre Zollinger Chohfi (azchohfi) and
Lauren Ciha (lauren-ciha)
and removed request for
Lauren Ciha (lauren-ciha)
October 27, 2026 19:04
Contributor
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
Contributor
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
Morten Nielsen (dotMorten)
requested a review
from Alexandre Zollinger Chohfi (azchohfi)
October 29, 2026 14:18
Lauren Ciha (lauren-ciha)
approved these changes
Oct 30, 2026
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
Morten Nielsen (dotMorten)
deleted the
user/dotmorten/unpackaged_templates
branch
October 30, 2026 22:57
Alexandre Zollinger Chohfi (azchohfi)
added a commit
that referenced
this pull request
Nov 5, 2026
…lates Resolve conflicts with #6874 (templates moved under Dotnet/templates) and #6905 (Packaged/Unpackaged option, host-conditional package references): - ProjectTemplate.csproj: take main's layout, minus the HostIdentifier-gated Microsoft.WindowsAppSDK reference. - ide.host.json: take main's Packaging/publisher entries, minus the hidden windowsAppSdkVersion entry. - template.json: drop the new post-action that ran `dotnet add package Microsoft.WindowsAppSDK`, which would otherwise re-add the metapackage after scaffolding. - Test-DotnetNewTemplates.ps1: Test-PackagingOptions no longer passes --wasdk-version to reactor* templates, which no longer define it. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This was referenced Nov 5, 2026
Alexandre Zollinger Chohfi (azchohfi)
added a commit
that referenced
this pull request
Nov 6, 2026
…ctor devtools profile (#6954) * Templates: restore the (Unpackaged) profile on packaged apps, fix Reactor devtools profile Packaged scaffolds of all nine app and test templates only got the MsixPackage profile after #6905, so every `dotnet run` printed "A usable launch profile could not be located": dotnet run can only apply Project or Executable profiles. Restore the pre-#6905 (Package) + (Unpackaged) pair, keeping (Package) first as the Visual Studio F5 default. WinApp still launches the app with package identity under dotnet run. Make the Reactor "(Unpackaged, Devtools)" profile pass `--devtools app`; a bare `--devtools` means `--devtools run`, which starts the MCP-server session. Reword the Reactor csproj comment that promised a devtools F5 profile and menu, and update the template tests and README. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Template tests: read optional commandLineArgs safely under strict mode Test-DotnetNewTemplates.ps1 runs with Set-StrictMode -Version 2.0, so reading commandLineArgs from a launch profile that doesn't define it threw "The property 'commandLineArgs' cannot be found on this object" in the Templates-PR smoke test. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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
Fixes #2214: Adds a Packaging choice to the WinUI and Reactor project templates.
Validation
WindowsPackageType=None.Notes
Unit Tests skipped here, since that is handled in #6885
Required pipeline validation
A Microsoft employee must validate this PR using TransportPackage-Foundation-PR with the PR branch and default parameters:
https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary