Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in VS2010 how do I add a whole directory of existing items

In VS2010 how do I add a whole directory of existing items?

When I right click on project and Add ExistingItem I seem to be able to load only one file at a time?

like image 575
Greg Avatar asked May 24 '10 04:05

Greg


People also ask

How do I add an existing folder to Visual Studio 2022?

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 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.


1 Answers

Assuming the files are already in the proper project's directory

  1. Select the project in solution explorer
  2. Click "Show All Files" icon at the top of solution explorer
  3. Right click on the folder you want to be part of the solution
  4. Select the "Include in project" option
  5. ??
  6. Profit!!!

Just kidding about 5 and 6, but that's probably the easiest way if the files are in the right directory structure, otherwise Andy's solution is probably easiest.

like image 189
Roman Avatar answered Dec 04 '22 22:12

Roman