Search code examples
iis-expressvisual-studio-2022

IISExpress not running all projects in solution Visual Studio 2022


I have a solution with several ASP.NET web applications. In previous versions of VS, debugging any one of those apps would also start the others in IIS Express as shown under Sites.

VS 2022 was working fine until the last update. Now it's a mixed bag on what runs when you starting an application. In one case only the application that was started appears in IIS Express->Sites. In another, the target app plus another appears.

I've double-checked my project settings and each is set to run in IIS Express.

enter image description here

The only setting I started to use is the Enable Edit and Continue for the new Hot Reload. It seems like the trouble started after that feature came out.

Anybody else have the same problem and hopefully found a solution?


Solution

  • I found the answer to this.

    Under the Solution itself, is a section for Startup Project. In here you can change it to run the currently selected project, a Single Project, or Multiple projects.

    1. Right-click on the Solution and choose Properties.
    2. In the left pane, choose Startup Project
    3. Choose Multiple startup-projects
    4. For each project you want to run at the same time, change its Action to Start.