Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 - Can't see solution name/root after adding first project to solution

How do I add more projects to a solution.

Before there was a layout as such if I recall:

Solution Name > Project1> project2>

Now after creating a blank solution and adding the first (c# class library) project all I am seeing in the solution explorer is this project and there's no solution name that I can right click over and add more projects. If going to file> add>new project and then selecting MVC3 Web application I get the prompt: Cannot add the item because the item to add it to is not a solution folder or the solution

Update: Strange, it only seems to occur when trying to add the MVC3 Website project. Adding other project types works.

All done. Appears to be a bug! Have to add any project type (did a c# class library) again other than an MVC3 empty WebSite and then solution name appears in solution explorer and you can add the MVC3 Website after.

like image 728
LaserBeak Avatar asked Oct 07 '11 02:10

LaserBeak


People also ask

How do I add an existing project to a solution in Visual Studio?

In Solution Explorer, select the solution. On the File menu, point to Add, and click Existing Project. In the Add Existing Project dialog box, locate the project you want to add, select the project file, and then click Open. The project is added to the selected solution.


2 Answers

Have you got "Always show solution" flag on?

enter image description here

like image 61
CharithJ Avatar answered Sep 17 '22 04:09

CharithJ


All done. Appears to be a bug! Have to add any project type (did a c# class library) again other than an MVC3 empty WebSite and than solution name appears in solution explorer and you can add the MVC3 Website after.

like image 37
LaserBeak Avatar answered Sep 17 '22 04:09

LaserBeak