Running two projects at once in Visual Studio

Visual StudioVisual Studio-2010Visual Studio-2015

Visual Studio Problem Overview


I created a solution in Visual C# 2010 Express that contains two projects: one is the client, the other is the server. I would like to debug both at the same time, but I can only seem to run one of the projects during debugging.

Is there a way to run both at once?

Visual Studio Solutions


Solution 1 - Visual Studio

Go to Solution properties → Common PropertiesStartup Project and select Multiple startup projects.

Solution properties dialog

Solution 2 - Visual Studio

Max has the best solution for when you always want to start both projects, but you can also right click a project and choose menu DebugStart New Instance.

This is an option when you only occasionally need to start the second project or when you need to delay the start of the second project (maybe the server needs to get up and running before the client tries to connect, or something).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTim CooperView Question on Stackoverflow
Solution 1 - Visual StudioMaxView Answer on Stackoverflow
Solution 2 - Visual StudioKevinView Answer on Stackoverflow