Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add an existing folder with all its sub folders and contents to a solution?

Is there any way to add an existing folder with all its sub folders and contents to a solution in visual studio 2012? Some ways like zipping it or something like this...?

like image 513
Hamid Reza Avatar asked Apr 05 '13 08:04

Hamid Reza


People also ask

How do I add folders to Solution Explorer Visual Studio?

To create a folder within the solution, right-click the solution name in the Solution Explorer pane and choose "Add", then "New Solution Folder" from the context-sensitive menu. To create a subfolder, start by right-clicking an existing solution folder and then choose the same menu options.

How do I add an existing file to Visual Studio project?

Adding existing files You can add existing files to your project by right-clicking on the Project node and selecting Add > Add Files....


1 Answers

There's a button in Solution Explorer called Show All files. Click on it and then select the folder you would like to include to the project:

enter image description here

Notice how the folders that are not part of the project are shown in white. You could pick the folder you want to include, right click on it and select Include In Project in the context menu. This will recursively include all files to the project.

like image 97
Darin Dimitrov Avatar answered Oct 19 '22 13:10

Darin Dimitrov