Set multiple startup projects
Visual Studio allows you to specify how more than one project is run when you press F5 (Start with Debugging), or Ctrl+F5 (Start without debugging), or use the toolbar button to launch your application. In this way, you could start multiple sites, apps, or services that depend on each other to work correctly during a debug session or just running and testing locally.
To set multiple startup projects
In Solution Explorer, select the solution (the top node).
Choose the solution node's context (right-click) menu and then choose Properties. The Solution Property Pages dialog box appears.
Expand the Common Properties node, and choose Startup Project.
Choose the Multiple Startup Projects option and set the appropriate actions.
With Docker Compose
When you're using Docker Compose to launch containerized projects on a local machine, you use a different method (launch profiles) to start multiple projects.
The following example shows a solution
WebFrontEndA with three projects, a front-end web site, a Web API project, and a Docker Compose project. The following screenshot shows how to start two of the three projects, one with debugging and one without:
In this example and any other Docker Compose scenario, you choose
docker-compose as the single startup project, but then you'll use a different way of specifying which projects or services to start. You'll use a Docker Compose launch profile to determine what services to start, and whether or not to attach the debugger, and there's a different dialog in Visual Studio for configuring it. See Start a subset of services. The Solution Property Pages dialog is only used for non-containerized solutions, or when you are not using Docker Compose to manage startup.