How To Debug Web API Project From MVC Project In Same Solution

后端 未结 3 569
醉酒成梦
醉酒成梦 2020-12-29 02:54

In VS 2012, I am attempting to create an MVC 4 web application with jQuery calls to a Web API project. (Other devs will be consuming the API with our current, native app, a

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 03:31

    Coming late to the party but in case anyone else is looking for a solution, this is what was best for me: Set the Api project up to be the starting project (I needed to limit to one startup so that I could flip between browsers more easily). After firing up the service project, right click on the web/ui project and select debug, start new instance. You'll have both running and you'll seamlessly step from web to api.

提交回复
热议问题