I want to make it so that in one solution there are two projects, one asp.net webapi, and the other just an html page with a set of js scripts and so that when you press f5 it all starts together, and the browser opens the html page. How to implement this in visual studio?

    1 answer 1

    1. In Visual Studio, call the context menu of the Solution, select Add | Existing Web Site... Add | Existing Web Site... Select the directory with the site files.
    2. Call the context menu of the Solution, select Properties . In the dialog that appears, select Common Properties | Startup Project Common Properties | Startup Project . Choose Multiple startup projects . For WebApi, select Action Start , for the site - Start without debugging .
    3. To prevent the page for the WebApi application from opening in the browser, you need to call the context menu of the WebApi project. Select Properties . Web tab. Start Action -> Don't open a page. Wait from a request an external application Don't open a page. Wait from a request an external application .