Skip to content

Evaluate supporting baseline in dotnet new and template engine #4062

Open

Description

@vlada-shubina

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.

Activity

  1. added
    need-pm-discussion
    on Oct 25, 2021
  2. baronfel commented on Nov 17, 2021

    @baronfel
    Member

    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
  3. baronfel commented on Nov 17, 2021

    @baronfel
    Member

    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 #3654, however.

  4. vlada-shubina commented on Dec 20, 2021

    @vlada-shubina
    MemberAuthor

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

  5. added
    triaged
    on Jan 3, 2023
  6. baronfel commented on Jan 5, 2023

    @baronfel
    Member

    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.

  7. removed
    need-pm-discussion
    on Jan 5, 2023
  8. added this to the Backlog milestone on Jan 5, 2023
  9. vlada-shubina commented on May 18, 2023

    @vlada-shubina
    MemberAuthor

    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.

  10. added
    triage:transfer-to-sdk
    on May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage:transfer-to-sdktriaged

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions