asp.net-corevisual-studio-codeasp.net-core-webapi

Can vscode use a profile from Properties/launchSettings.json?


Is there a way to just point ".vscode/launch.json" to a profile defined in my "Properties/launchSettings.json" so I don't need to duplicate those values?

I need to support several different editors and also run from command line with

dotnet run --launch-profile="myprofile"

Solution

  • This is in the docs under debugger-launchjson.md > launchSettings.json support:

    "launchSettingsFilePath": "${workspaceFolder}/<Relative-Path-To-Project-Directory/Properties/launchSettings.json"