Skip to content

Add --file-based option for relevant templates #51726

@DamianEdwards

Description

@DamianEdwards

We should consider updating the following dotnet new templates with a new --file-based option that creates them as file-based apps. This option would be configured to not be shown in Visual Studio as it doesn't support file-based apps.

  • console
  • web (empty web)
  • webapiaot (web API w/ native AOT)

These templates are simple enough that it's reasonable to offer a file-based apps option for them.

The console template is of course super simple (one appname.cs file, one line of code), but the web templates would include an appname.run.json file and appname.settings.json/appname.settings.Development.json files which is handy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Common templatesCovers templates in the repo (classlib, console, common item templates)Area-TemplatesArea-run-fileItems related to the "dotnet run <file>" effortuntriagedRequest triage from a team member

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions