Is there a way to unit test or debug a web api in one vs solution? I am consuming the WebAPI using HttpClient and have two instances of VS up to do this.
in 1 VS instan
So a colleague and I just tried the suggested answers to no avail. However, we have actually found a solution to this that works well by attaching to the IIS process once you are in debug mode on your test. Here are the steps:
For extra ease, we downloaded an extension for attaching to IIS automatically which gave us a menubar item in the Tools menu.
For superb ease we customized the toolbar section to add the menubar command to the toolbar so that attaching to IIS was one simple click.