Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2008 Solution Explorer not showing solution

I have tried this a few different ways and it always seems to fail.

  1. Create a new Blank Solution (my.solution.name). Then add a new ClassLibrary project (my.project.name) to the solution. This results in the solution explorer only showing my.project.name.

  2. Create a new ClassLibrary (my.project.name) which should have my.project.name solution and my.project.name project. I only see my.project.name project.

Without the solution level I'm unable to add any new projects to my solution. This seems to have just started today.

like image 716
wes Avatar asked Apr 05 '10 18:04

wes


People also ask

How do I show vs Solution Explorer?

If you don't see the Solution Explorer tool window, you can open it from the Visual Studio menu bar by using View > Solution Explorer, or by pressing Ctrl+Alt+L.

How do I show all files in Solution Explorer?

The Solution Explorer lists files included in the project. In addition to that, files not included in the project but contained in the project folder can be shown using the 'Show All Files' button at the top of Solution Explorer.

How do I open the solution folder in Visual Studio?

In Visual Studio, click File > Open > Folder. Navigate to the folder, and click Select Folder. This opens the folder in Solution Explorer and displays its contents, files and any subfolders.

How do I add a solution to a solution in Visual Studio?

Add files to a solution To add an item to a solution, on the context (right-click) menu of the solution node in Solution Explorer, select Add > New Item, or Add > Existing Item. A solution file is a structure for organizing projects in Visual Studio.


3 Answers

There is a setting in the Visual Studio 2008 options that controls this:

  • Open the options dialog Tools > Options...
  • Select Projects and Solutions > General in the navigation pane
  • Check Always show solution

If this option is enabled, then the solution will always be visible in the Solution Explorer, even if there is only 1 project in the solution.

like image 121
bcpettifer Avatar answered Oct 07 '22 23:10

bcpettifer


If you added another project the solution will appear, so if its just one project in the solution you will not see the solution, but if more than one project attached to the same solution you will start seeing the solution.

You can add new project normally from file menu then select add to solution.

And i think this problem solved by SP1.

Update:

While my answer explain why this is happening but I beleive that the correct solution is https://stackoverflow.com/a/4946248/20126 from @bcpettifer

like image 33
Amr Elgarhy Avatar answered Oct 07 '22 22:10

Amr Elgarhy


All you need to do is to Reset The windows layout in Windows Menu.

like image 24
ramesh Avatar answered Oct 08 '22 00:10

ramesh