templating icon indicating copy to clipboard operation
templating copied to clipboard

Add a new item template for launchSettings.json

Open sayedihashimi opened this issue 2 years ago • 4 comments

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 avatar Feb 02 '23 18:02 sayedihashimi

@sayedihashimi is launchSettings.json web-related only? would Web.ItemTemplates be a better place for it?

vlada-shubina avatar Feb 02 '23 19:02 vlada-shubina

@vlada-shubina no it applies to all runnable .net projects (Console, Web, MAUI, etc.)

sayedihashimi avatar Feb 02 '23 19:02 sayedihashimi

I am removing the WebSDK tag since we want this to be created in a workload agnostic way.

vijayrkn avatar Feb 03 '23 16:02 vijayrkn

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.

sayedihashimi avatar Feb 03 '23 18:02 sayedihashimi