dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.72k stars 1.07k forks source link

Create a new `dotnet new` template for launchSettings.json #42107

Open baronfel opened 4 months ago

baronfel commented 4 months ago

Is your feature request related to a problem? Please describe.

While launchsettings is created by some project templates, it's hard to add it retroactively to a project. The SDK should ship a launchSettings.json template (dotnet new launchsettings?) with defaults to make it easier to onboard.

cc @DamianEdwards @danroth27 for feedback on what should be in a default launchSettings.

DamianEdwards commented 2 months ago

Sounds reasonable, but what's in it really depends on the project type. We might want a parameter to indicate what type of launchsettings file is wanted (e.g. "standard", "web"), or completely separate templates (e.g. "launchsettings" and "launchsettingsweb").