Working with Azure: Fixing VS Solution Explorer Drag & Drop
Is Your Drag & Drop not Working?
If you’ve been developing in Azure you should be used to running Visual Studio as an administrator. This is required when working with the Azure Compute & Storage emulators in IIS (as of Windows Azure SDK 2.1 you can bypass this by using Emulator Express although it comes with its own limitations).
The other day while Azurifying one of our applications I noticed that you cannot drag & drop while running Visual Studio in administrator mode. This this done on purpose by VS for security reasons (related to UAC). Luckily there are a few workarounds.
Workaround #1: Manually Copy & Toggle the Show All Files Icon
Open the project directory to manually copy over the files/folders you want to add and then use the Solution Explorer to unhide non-project files by clicking the "Show All Files" icon. This will only toggle the files for the currently selected project.
Then you can hold the Ctrl key, pick the files/folders you want, and right click selecting "Include In Project" from the context menu.
When you’re done you can just toggle the "Show All Files" button again.
Workaround #2: Install VS Commands Extension
You can also get around this issue by using a 3rd party Visual Studio extension called VS Commands. After installing you will get 2 new menu entries under Tools > VSCommands called "Elevated Windows Explorer" and "Directory Explorer". Either of these will work by opening an elevated Windows Explorer window.
You can drag & drop normally from this window.