Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i switch between (or highlight) projects of the same solution in Visual Studio 2012?

I am new to Visual Studio and this problem has been bugging me for days.

I have two projects in the same solution in Visual Studio 2012.

In my solution manager one of them is highlighted, so when I start it without debugging Ctrl+F5 the one highlighted starts.

How do I highlight (and then on pressing Ctrl+F5 ) start the OTHER project? Without having the close and reopen the projects.

like image 841
Kriszta Avatar asked Oct 11 '12 05:10

Kriszta


People also ask

How do I switch between projects in Visual Studio?

To change which project starts by default right click the project and choose Set as Startup Project. You can also use the drop down next to the play button to switch which project will run when you start debugging.

How do I open two projects at the same time in Visual Studio?

To open a second instance of the integrated development environment (IDE), right-click on the Visual Studio icon in your dock or Applications folder, and select New Instance.

How do I select a project in Visual Studio?

You can right-click a project and set it as the Startup Project. It then is debugged when you press F5, or run when you press Ctrl-F5.

What is the difference between project and solution in Visual Studio?

A project is contained within a solution. Despite its name, a solution isn't an "answer". It's simply a container for one or more related projects, along with build information, Visual Studio window settings, and any miscellaneous files that aren't associated with a particular project.


2 Answers

Right click -> Set as Startup Project.

like image 92
Jonathon Reinhart Avatar answered Oct 14 '22 08:10

Jonathon Reinhart


When you Right Click the Solution and check the properties you have the Startup project option, make that as Current Selection

So you can launch by toggling the selection.

Right now in your case it would be Single startup project which is why you are unable to launch them separately.

like image 25
V4Vendetta Avatar answered Oct 14 '22 08:10

V4Vendetta