Home > Enterprise >  Net core web API project and Net framework web API project in same Visual Studio solution
Net core web API project and Net framework web API project in same Visual Studio solution

Time:01-19

I have a VS solution containing two web API projects one net core web API and one net framework web API

How can I launch both web API projects for debugging on IIS express? I found out that only one web API launches at a time (the one set as Startup project)

In the configuration manager both projects are set to build: enter image description here

CodePudding user response:

At least for VS 2022, you can follow the simplest steps to select multiple projects as startup projects,

Visual Studio multiple startup projects selection

But one thing to note is that before setting multiple startup projects, you should debug your ASP.NET Core project at least once and select from the Debug menu to debug upon IIS Express,

Visual Studio debug menu to select IIS Express

Reference

  • Related