I'm running VS2010 Pro SP1 (10.0.40219.1). I copied/pasted a folder into my solution's directory in Windows Explorer, clicked the ghost button in VS' Solution Explorer so I can now see the folder from VS, right clicked on the folder, and the "Include in Project" context menu item is missing.
I can manually include all of the files within the directory tree, but that's a task considering this function once existed within my installation of Visual Studio.
This solution is an MVC3 Web App, but it appears to be happening with all solutions, Console Apps, etc.
Thanks in advance, Ben
The menu selection should be on the top-level Project menu.
If you don't have too many customizations, you could also try resetting all settings from the Tools -> Import and Export Settings... dialog.
This works from within a project, but not from the solution level. You can add folders at the solution level, but solution level folders don't map to filesystem folders.
It would work if you had a project in the same folder. But you would be "including" the folder in the project, not the solution.
To add files from that folder, use Add > Existing Item. But the files you add this way will go to your Solution Items
folder, which probably isn't what you wanted to do. The Solution Items
folder simply maps to the actual solution folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With