microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.35k stars 678 forks source link

Error name with UWP Modern .NET templates #9977

Open Gaoyifei1011 opened 1 month ago

Gaoyifei1011 commented 1 month ago

Describe the bug

Error name with UWP Modern .NET templates

Steps to reproduce the bug

{08AFA661-74DD-46B2-B856-B325A0018C2D}

Expected behavior

Simple name

Screenshots

No response

NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.2

Windows version

Windows 11 (22H2): Build 22621

Additional context

None

Sergio0694 commented 1 month ago

I think this is expected, that's just the default name that gets pre-populated in the dialog with the template name. But you're meant to always replace that with the actual name you want to use for your project. I'll try asking whether there's a way to explicitly set a different default project name for the dialog in the project template 🙂

Gaoyifei1011 commented 1 month ago

I think this is expected, that's just the default name that gets pre-populated in the dialog with the template name. But you're meant to always replace that with the actual name you want to use for your project. I'll try asking whether there's a way to explicitly set a different default project name for the dialog in the project template 🙂

In other templates, however, the name displayed is App1 然而在其他模板中,显示的名称为 App1 {9DCF9644-6C7C-44E5-8814-6DACB08CDE8A} {1B9593E1-A3CC-44A7-98F0-ED9E2393762C}

Sergio0694 commented 1 month ago

Ah, found it, I forgot to set DefaultName for the WAP template. I'll fix it. Thank you! 🙂