dotnet / dotnet/sdk

Add `--file-based` option for relevant templates

Open
#51,726 0 comments 2 reactions 0 assignees View on GitHub
Area-Common templates Area-run-file Area-Templates untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.