By default, each time a web service is run/debugged in Visual Studio Code, a new browser windows is opened. Running the web service project Visual Studio Code: Creating a C#/WebApi Project with DotNet 5 three times launches (by default) a browser and opens three tabs (once per debug session):
For a Visual Studio Code web service project to not open a browser window each time the web service is debugged, the launch.json file under the .vscode folder needs to be modified. An example of the deafult launch.json is as follows:
To not open a browser window comment out the serverReadyAction attribute (lines 18-21).
No comments :
Post a Comment