So I have two projects: a Web API service and MVC web site which consumes service, both in one solution. I considered to run them using multiple startup projects option, but encountered a problem. Since Web API has no web interface, it opens in browser and lists contents of project directory. How can I prevent this?
1 Answer
If you don't want the browser window to open every time you run the project you can change your Web Api project properties.
Go to Properties > Web and select "Don't open a page. Wait for a request from an external application" under the 'Start Action' heading, this will keep the project running in the background.
See answer here: https://stackoverflow.com/a/716757
1 Comment
LCJ
Nice find.. Not all of us get a chance to read complete Visual Studio documentation.
default.htmto the root of the Web API project. If you don't want the web page to display you could try running IISExpress from the command line iis.net/learn/extensions/using-iis-express/….