templating icon indicating copy to clipboard operation
templating copied to clipboard

Evaluate supporting baseline in dotnet new and template engine

Open vlada-shubina opened this issue 2 years ago • 5 comments

Currently template engine supports baseline: set of predefined input parameters that can be used when running or filtering templates.

dotnet new supports --baseline switch, but for now it is hidden.

Evaluate do we need this feature enabled for .NET 7, keep it hidden as is or should we remove it.

vlada-shubina avatar Oct 25 '21 17:10 vlada-shubina

Some open questions for me to investigate:

  • Need to run down places where this feature is currently used - this should be easily doable from the search manifest
  • Some code/design archeology to run down the history/driving use case of the feature

baronfel avatar Nov 17 '21 15:11 baronfel

Internal Usage:

  • dotnet/templating - used to set the Framework parameter in the class library templates
  • dotnet/aspnetcore - not used
  • dotnet/winforms - not used
  • dotnet/maui - not used

External Usage:

All of the external usage feels very copy/pasted from our templates to me. This isn't surprising, given that we don't have a template-for-templates. I don't think that this functionality is very widely used at the moment. There is a potential use case for it as a solution to https://github.com/dotnet/templating/issues/3654, however.

baronfel avatar Nov 17 '21 16:11 baronfel

No change to this behavior in scope of #2191, the baseline option remains hidden. Keeping the issue open for discussions.

vlada-shubina avatar Dec 20 '21 18:12 vlada-shubina

We should deprecate baseline - it's not widely used in the ecosystem and where it is used we have no evidence that template users actually use the baselines.

baronfel avatar Jan 05 '23 15:01 baronfel

As it was agreed to deprecate baseline, we need to make all code that uses it obsolete. The action is purely refactoring, until obsolete code is agreed to be removed.

Consider removing --baseline option from CLI or make it obsolete.

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