views:

419

answers:

1

Is there a way to create a blank solution, or some type of file-based project solution within Visual Studio so that I can point to a root folder, and have all of the sub-folders and files in that root, show up in my solution explorer? I realize I can create a blank solution and then add the individual items manually by add > existing item, however, this does not keep the folder structure intact, and, well, it would take forever if I have a lot of folders/files.

+3  A: 

You can also create the blank solution and then click the second-from-the-right icon at the top of the solution explorer (it looks like three files with one "cut out"). Once you click that button to show the files in the solution directory that are not in a project, you can select all the files (with shift-click) and then right-click on your selection and select "Include In Project."

Also note you can select multiple files in the "Add Existing..." file window with shift- or control-click.

SoloBold
My blank solution for VS.NET 2008 only has two icons on top of the solution explorer - Properties, and Add New Solution Folder. Also, shift/ctrl clicking multiple files gives me the issue where it just brings the files into explorer at the root.. not in their nice folder structures.
EvilSyn
I am pretty sure the 'show all files' icon is only visible when you have an actual project and not a blank solution..
EvilSyn