Skip to content

ASP.NET Core Web App template should not have 2 short names defined #33067

@vlada-shubina

Description

@vlada-shubina

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 (

).

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.

Metadata

Metadata

Labels

area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbreaking-changeThis issue / pr will introduce a breaking change, when resolved / merged.bugThis issue describes a behavior which is not expected - a bug.feature-templates

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions