templating
templating copied to clipboard
Add a new item template for launchSettings.json
It would be great to have an item template to create a basic launchSettings.json file. For content I was thinking to have the following.
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"ConsoleApp11": {
"commandName": "Project"
}
}
}
For CLI users that want to customize the command args (and other options) it's hard to know how to create this file without a template. Having the $schema declaration in the file is helpful because many editors/IDEs should enable completions/validations/etc.
There is no rush on adding this item template.
@sayedihashimi is launchSettings.json web-related only?
would Web.ItemTemplates be a better place for it?
@vlada-shubina no it applies to all runnable .net projects (Console, Web, MAUI, etc.)
I am removing the WebSDK tag since we want this to be created in a workload agnostic way.
FYI I updated the description to indicate that there is no rush to get this implemented. Whenever we have time to add this it would be great.