By default, Visual Studio 2017 and most prior versions open up a web browser session every time you start a web api or mvc application. This can be annoying if you are trying to debug a web service API. The following steps add "Browser" that's just a powershell api call to initialize the web service.
- Click the dropdown next to the green play button.
- Select Browse With
- Click Add
- Enter the following:
Program: c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe
Arguments: -NoProfile -NonInteractive -Command iwr -UseBasicParsing -Uri
Friendly Name: Powershell Init
- Click set as default (optional)