Visual Studio Development Bookmark and Share   
 index > Visual Studio WPF Designer > Annoying oversight in Visual Studio
 

Annoying oversight in Visual Studio

I have a program which I am trying to port over to WPF, so I have created a new solution in Visual Studio and am moving some code over and rewriting some other code. I am having a very basic problem with this migration process. My program contains a large number of resources, including sounds and images. These are in a "Resources" folder in the original solution. But there are many many subfolders. What I wanted to do was copy the "Resources" folder over, subfolders and all and then use the "Add Existing Items" to add the folder. But there seems to be an oversight in Visual Studio. There appears to be no way to add an existing folder to a project! I can add a new folder, or I can add an existing file. So I have to add like 50 folders by hand in Visual Studio and then add the existing files. It is extremely tedious.

Does anyone else know a better way to do this?

Thanks!
phertel  Thursday, September 24, 2009 5:46 PM
Just copy the folder in your filesystem. Then select the new project in the solution explorer and press the "show all files" button in the toolbar above. Right-click the folder, which will have appeared but will not be part of your project, and choose Include in Project.
Controls for WPF, Windows Forms and Silverlight at http://www.divelements.co.uk
  • Marked As Answer byphertel Saturday, September 26, 2009 10:30 PM
  •  
Tim Dawson  Friday, September 25, 2009 1:56 PM
Just copy the folder in your filesystem. Then select the new project in the solution explorer and press the "show all files" button in the toolbar above. Right-click the folder, which will have appeared but will not be part of your project, and choose Include in Project.
Controls for WPF, Windows Forms and Silverlight at http://www.divelements.co.uk
  • Marked As Answer byphertel Saturday, September 26, 2009 10:30 PM
  •  
Tim Dawson  Friday, September 25, 2009 1:56 PM
I can't believe I never knew that! Thanks that's very helpful.
phertel  Saturday, September 26, 2009 10:30 PM

You can use google to search for other answers

Custom Search

More Threads

• 3D samples in Windows SDK not modified for feb CTP
• Error in VS 08
• Adding Custom Control to Cider Toolbox - Is it possible?
• Visual Studio 2008 crash
• Add usercontol in wpf application in runtime
• DataGrid autogenerated columns to xaml
• Intillisense Kind of DialogBox for My Control
• Mimick Outlook Address Cards View
• VS2008 Beta 2 WPF Designer Containers
• Page load wpf browser application (chat application)