Set multiple startup projects in Visual Studio for Mac


Visual Studio for Mac is scheduled for retirement on August 31, 2024 in accordance with Microsoft’s Modern Lifecycle Policy. While you can continue to work with Visual Studio for Mac, there are several other options for developers on Mac such as the preview version of the new C# Dev Kit extension for VS Code.

Learn more about support timelines and alternatives.

Visual Studio for Mac allows you to specify that more than one project should be started when you debug or run your solution.

To set multiple startup projects

  1. In the Solution Window, select the solution (the top node).

  2. Right-click the solution node and then select Set Startup Projects:

    Select Set Startup Projects

  3. The Create Solution Run Configuration dialog box opens. This dialog box allows you to create a new named Solution Run Configuration for your solution. You can use any name you like. The default name is Multiple Projects.

    Create Solution Run Configuration dialog box

  4. Select Create Run Configuration. The Solution Options dialog box opens with the new Solution Run Configuration selected:

    Solution Options dialog box

  5. Select the projects that you want to start when you debug or run your app from Visual Studio for Mac:

    Solution Options dialog box with selected projects

  6. Select OK. The new Solution Run Configuration is set as the active run configuration:

    Solution with multiple projects configured to start on debug or run

    Now the two projects are configured to start, which is represented by both projects appearing bold in the Solution Window. In the toolbar, the new run configuration is set as the current Solution Run Configuration.

Next steps