“Not able to view the solution file in Visual Studio” – Hide and Show solution file in Visual Studio

By | May 31, 2011

Sometime you may came across with this problem that, you are not able to view the solution file in Visual Studio though you have solution file in proper place and the file physically exists in solution folder . You may just wonder why you are not able to view the solution file. Yeah, it could be some missing settings with in visual studio.

If you create any Visual Studio Project, by default you will get below view in Solution Explorer ( Solution file and the Project files associated with in solution ).

image

But in case, your solution explore looks like as below, where you don’t have the solution file listed.

image

You have to go to Tools > Options > Project and Solutions > General , where you can see “Always Shows Solution”  is Unchecked.

image

Once you checkedAlways Shows Solution” , you will able to view the Solution file with in solution explorer.

Note : By default “Always Shows Solution” is Checked

This things is really required when you want to add multiple project in a single solution, which is most common.  Now,  if you have multiple project already added with in solution, this things will not work, which means, if you unchecked the “Always Shows Solution” option you can still able to view the solution file as it has been associated with multiple projects  ( Refer below image ).

image

Hope this will help.

Thanks !

Aj

One thought on ““Not able to view the solution file in Visual Studio” – Hide and Show solution file in Visual Studio

  1. hal linden

    Hello there, simply turned into aware of your blog thru Google, and found that it is really informative. I?m gonna watch out for brussels. I will appreciate if you continue this in future. A lot of other folks will be benefited from your writing. Cheers!

Comments are closed.