Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add folders into the Solution Explorer for Visual Studio Express 2012 for Web?

Tags:

I am very new to Visual studio, so I am trying to learn the basics.

I have read so many articles but some are for 2012, some are for the non-web version, etc, but I seriously can't find a solution to such a simple task as this.

I am using Visual Studio Express 2012 for Web, and have created a "Blank Solution".

I end up with this view:

enter image description here

Now my goal is to add all my existing files and folders and have it shown in Visual Studio.

So, I have located my solution file on disk and copied all my files into the same folder:

enter image description here

Now, I know its possible to add single items into the view by right clicking and picking add item:

enter image description here

But I cant include folders here. I have tried to drag and drop, I have read guides about using the "Show all files" button, but apparently that does not exist for the Web version of Visual Studio 2012.

Could anyone please tell me what the proper way is to include all my files into the solution explorer?

like image 680
corgrath Avatar asked Jan 27 '13 09:01

corgrath


People also ask

How do I add folders to Solution Explorer Visual Studio?

Right click the project or contained folder and choose Add | Existing Item... . Use Show All Files . Click on files or folders you would like to add to the project and choose Include In Project . Drag and drop files and folders from Windows Explorer.

How do I add a file to Visual Studio Solution Explorer?

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.

How do I add folders to solution rider?

In the New Project/New Solution dialog, click More Templates on the left, then click Install Template, and then choose a folder or a package file with the custom project template.


1 Answers

I just had this same problem in Visual Studio 2012 Ultimate. I know your question is about Web but maybe this will work for you too.

Assuming the files/folders you want to include are in your solution folder, from the Project menu toggle on "Show All Files", then you should see the files/folders in Solution Explorer. Select those you want to include, right click and choose "Include in Project".

like image 66
Adrian Parker Avatar answered Sep 24 '22 15:09

Adrian Parker