2

I have a visual studio solution with 2 projects in it. Both are web API's (not .net core). When I had one project I could debug it by hitting

http://localhost:53961/api/...

However I then added the 2nd project. How can I start debugging the second one? It doesn't seem to hit the breakpoint. I get

No HTTP resource was found that matches the request URI

When I put a breakpoint on the main method

    // GET: api/<controller>
    [HttpGet]
    public async Task<Result> Get(string emails)
    {

    }

I see a message:

The breakpoint will currently not be hit. No code has been loaded for this code location.
omega
  • 40,311
  • 81
  • 251
  • 474

1 Answers1

7

You can set "Multiple startup projects". Right click on solution in solution explorer and then click properties. Common Properties->Startup Project and then select "Multiple startup projects" and then set the Action for both of your APIs to "Start"

enter image description here

Mohsin Mehmood
  • 4,156
  • 2
  • 12
  • 18