templating icon indicating copy to clipboard operation
templating copied to clipboard

Validating precedence in template groups

Open vlada-shubina opened this issue 3 years ago • 1 comments

When working with template groups, one of the most common mistakes is same or missing precedence.

Consider the checks for the template group / when installing the template package to check if the template with same precedence is already installed inside same group.

However valid scenarios are:

  • the templates may have same precedence in case language is different
  • the templates may have same precedence in case type is different

vlada-shubina avatar Jan 18 '22 10:01 vlada-shubina

This is a nice fit as validation check in scope of https://github.com/dotnet/templating/issues/2623 for authoring tools we may consider an extended check to check known templates in the template group for precedence clashes (for example using search cache for that, or other location for 1st party templates).

vlada-shubina avatar May 18 '23 11:05 vlada-shubina