-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
dotnet new CLI and template engine core is going to deprecate the support of having multiple short names for the template. We are cutting off from template.json schema shortly, but the template engine/dotnet new will still support it for a while (at least in .NET 6).
The main reason of this change is that short name is supposed to be unique, but names pool is limited and we don't want to encourage authors taking multiple names. @KathleenDollard can provide more details on it.
We made a discovery and identified that only ASP.NET Core Web App is using this feature (
Lines 15 to 18 in 028470e
| "shortName": [ | |
| "webapp", | |
| "razor" | |
| ], |
Please consider removing multiple names from ASP.NET Core Web App template.
Note that in case the multiple short names won't be removed since next .NET preview the template will be shown in the dotnet new list as following: dotnet/templating#3191 (comment) as it has multiple short names defined. Previously only first name was shown in the list, which led to confusion as the user can instantiate the template with any of short names (i.e. dotnet new webapp and dotnet new razor are same commands), but due to razor was not listed it led to confusion why the template was instantiated successfully (see dotnet/templating#3038 for more details).
I can make PR making the actual change, in case you confirm which one of short names you prefer to keep.