Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add an already existing directory to a directory in Solution Explorer

I want to add an already existing directory to a directory in Solution Explorer, but whenever I right-click on the directory and select Add => Existing Item, I can only add individual files, but not directories.

How do I add an already existing directory to a directory inside a Project inside Solution Explorer?

like image 856
JMK Avatar asked Sep 30 '12 17:09

JMK


People also ask

How do I add an existing project to Solution Explorer?

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.

How do I add folders to Visual Studio Solution Explorer?

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.


1 Answers

Click the 'Show all files' button at the top of the Solution Explorer and right click the folder desired and select 'include in project'.

Show All Files button in VS2012 Solution Explorer

like image 174
Radenko Zec Avatar answered Oct 09 '22 15:10

Radenko Zec