Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Web API and MVC projects simultaneously

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?

like image 760
Vlad Levchenko Avatar asked Oct 26 '25 08:10

Vlad Levchenko


1 Answers

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

like image 57
emwright Avatar answered Oct 29 '25 09:10

emwright



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!