views:

1448

answers:

3

So the issue is simple really, instead of creating folders in visual studio, i create a directory structure for my project on the file system. How to i include all the folders and files in a project, keeping the structure?

If i "Add Existing File" on a folder named Services and navigate to a file in the directory structure .. Services > AccountManagement > CreateAccount.cs it appears in visual studio like so : Services > CreateAccount.cs. I do not want this.

I have an entire directory structure worked out already, as I am mimicking our client developers using the same structure for organization. How do i add all the folders and files to the project in Visual Studio? Or do i have to do what most MS users do and "put up with it" and recreate each and every folder through visual studio?

+17  A: 
m3rLinEz
Thanks - like Brian this has frustrated me for a long time.
Guy
Nice one , saved me a lot of time. Cheers
Rich
A: 

http://www.devx.com/vb2themax/Tip/18856

Kon
+5  A: 

You can also drag'n'drop the folder from windows explorer onto your visual studio solution window.

Todd Smith