Skip to content

Add test script and fix issue with item templates - #6303

Merged
Muyuan Li (MuyuanMS) merged 2 commits into
user/muyuanli/dotnetnewtemplatefrom
user/muyuanli/TestScriptAndFix
Mar 17, 2026
Merged

Muyuan Li (MuyuanMS) merged 2 commits into
user/muyuanli/dotnetnewtemplatefrom
user/muyuanli/TestScriptAndFix

Conversation

@MuyuanMS

Copy link
Copy Markdown
Contributor

Added dev/VSIX/DotnetNewTemplates/Test-DotnetNewTemplates.ps1 to test out templates in one go.

Found issues with item templates. ContentDialog for example: the source name is ContentDialog, but there are occurrences of "ContentDialog" that meant not to be replaced. Running dotnet new winui-resourcedictionary -n Colors will replace all "ContentDialog" with "Colors" and the project will fail to build.

Solution is to use another variable for places where "ContentDialog" is needed and do not need to be replaced.

@MuyuanMS
Muyuan Li (MuyuanMS) merged commit 1694bb8 into user/muyuanli/dotnetnewtemplate Mar 17, 2026
1 check passed
@MuyuanMS
Muyuan Li (MuyuanMS) deleted the user/muyuanli/TestScriptAndFix branch March 17, 2026 07:02
Dinah Xiaoman G (DinahK-2SO) pushed a commit that referenced this pull request Apr 20, 2026
* set dotnet version based on installed sdk version, and increase windows sdk in tfm

* Add test script and fix existing issues with item templates

---------

Co-authored-by: Nikola Metulev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants