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
- 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. - Call the context menu of the Solution, select
Properties. In the dialog that appears, selectCommon Properties | Startup ProjectCommon Properties | Startup Project. ChooseMultiple startup projects. For WebApi, selectActionStart, for the site -Start without debugging. - 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.Webtab.Start Action->Don't open a page. Wait from a request an external applicationDon't open a page. Wait from a request an external application.
|