ASP.NET WEB API launch.json for Visual Studio Code
Suppose you want to debug your ASP.NET application on Visual Studio as well Visual Studio Code. Sure you can use the run feature of the Solution Explorer extension in Visual Studio Code, but that’s not really a VS Code native feeling.
- Rename or delete eyour
.vscode/launch.json
file. - Go to Run and Debug tab
- Press “Generate”
- Go to
launch.json
- Add
"uriFormat": "%s/swagger"
undereserverReadyAction
- Add
"ASPNETCORE_URLS": "https://localhost:7065"
underenv
- Press F5 and enjoy