I've tried this answer posted for Visual Studio 2013.
How can I prevent Visual Studio 2013 from closing my IIS Express app when I end debugging?
In Visual Studio 2015, it is bit different and didn't work for me.
How can I prevent closing Visual Studio 2015 IIS
express app when I end the debug?
To find this setting, open the Visual Studio Options dialog from Tools menu and select Options. From there, locate Web Projects from the Projects and Solutions navigation tree. Now untick the option box that says "Stop debugger when browser window is closed, close browser window when debugger stops."
Tools > Options > Projects and Solutions > Web Projects(Visual Studio 2019) Disable "Stop debugger when browser window is closed, close browser when debugging stops".
Closing IIS Express By default Visual Studio places the IISExpress icon in your system tray at the lower right hand side of your screen, by the clock. You can right click it and choose exit. If you don't see the icon, try clicking the small arrow to view the full list of icons in the system tray.
Does right click on the "project -> view -> view in browser" work for you needs? It starts iis express and keeps it running.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With