Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to launch a specific project from Visual Studio solution

I have a solution which includes several projects. How can I launch each project from Visual Studio separately?

like image 824
Peter17 Avatar asked Mar 10 '11 08:03

Peter17


People also ask

How do I run a particular project in a solution in Visual Studio?

Right-click on your Solution within the Solution Explorer Select the Set Startup Projects option. Select the Projects that you want to run under the Multiple Startup Projects area or select a single project from the Single Startup Project sections. Click Apply to apply your changes.

How do I open a Visual Studio project or solution?

Open Visual Studio. On the start window, select Open a project or solution. Visual Studio opens an instance of File Explorer, where you can browse to your solution or project, and then select it to open it. If you've opened the project or solution recently, select it from the Open recent section to quickly open it again.

How do I create a new project in Visual Studio 2010?

After Visual Studio Installer launches, select the .NET desktop development workload and then the Modify button. From the right-click or context menu of Solution 'QuickSolution' in Solution Explorer, select Add > New Project. A dialog box opens that says Add a new project.

What should be the startup project in Visual Studio?

If you open Visual Studio, the startup project should be the application: It's a little change, but it's so convenient when you clone a repository and open the solution in Visual Studio for the first time. This post is part of the series 'Visual Studio Tips and Tricks'.

What is a solution in Visual Studio?

A solution is a container to organize one or more related code projects, like a class library project and a corresponding test project. As an educational exercise to understand the concept of a project, you'll construct a solution and project from scratch. Ordinarily, you'd use Visual Studio project templates to create new projects.


4 Answers

You can configure a solution to have multiple startup projects - Right click the solution in Solution Explorer, choose "Set StartUp projects", choose "Multiple Startup Projects", and choose the ones you wish to have start. They'll all be started when you hit F5.

Or, you can right click any project in Solution Explorer, and choose "Debug"->"Start New Instance" or "Debug"->"Step Into New Instance" - you can do this to any projects you want to, at any time. (So, if you want to have some projects start when you start debugging, and start others at a later point, this is the way to go)

like image 64
Damien_The_Unbeliever Avatar answered Sep 29 '22 22:09

Damien_The_Unbeliever


Right click your solution and choose "set startup projects"

startup projects

next, you can choose which projects you want to start simultaniously

startup overview

or you could right click a project and set that one to startup, each time you "F5", that one will start. You can verify which one is set as startup by looking at the one in bold.

like image 38
Terry Avatar answered Sep 29 '22 20:09

Terry


You can also select the option Set StartUp Projects...>Current Selection. To run the project you have in editor window.

like image 28
Ivanp Avatar answered Sep 29 '22 20:09

Ivanp


You could select a default startup project for the solution in the menu if you right click on it. This could also be done if you right click on the solution and go to the properties window where you could select a single or multiple startup projects.

like image 25
Darin Dimitrov Avatar answered Sep 29 '22 21:09

Darin Dimitrov