Adding files or folders to a project via drag and drop doesn't work. I receive an error: "The operation could not be completed. Unspecified error".

I'm using Visual Studio 2008 on Windows 7

juanc says:

Are you dropping files from explorer?

You can only drag-n-drop files from within the solution view.

daveroberts says:

Thanks.

Yes, that is what I am doing.

If this is the case, how do I add files to a project?

MShanahan says:

You can add files by right clicking on the folder or project, go to Add Existing Item, then find the file(s) you wish to add. It will get copied to your project directory if it's not there already.

daveroberts says:

Thank you. That works for adding individual files. What if I want to add a folder with 10,000 files? Do I need to add them all one by one to my project?

juanc says:

Not really, here is another way.

Copy the folders you want to include in the project folder using Windows Explorer.

Then inside visual studio's solution view do this:

- click show all button
- click the refresh button
- the new folders should show up
- right click on them and select include in project
- click the show all button again
- save the project

Juan