Can't drag files to Solution Explorer

2020-02-04 07:11发布

问题:

I am having an unusual problem. I have always been able to drag files and folder from my desktop or explorer to the solution explorer in visual studio and add the files to my project. No when I attempt to drag files I simply get the "stop" symbol.

I am using Visual Studio 2008 running on Vista Home Premium 64 bit.

Any ideas?

回答1:

Windows will not let you drag from one window to another if only one of those windows is running as Administrator.

Are you running Visual Studio as Administrator?

In short : Run Visual Studio as Non Administrator.



回答2:

You can't do this when your project is running. Is it?



回答3:

I also cannot drop files from the explorer onto Visual Studio when it is running in admin mode.

But please try opening 'Add / Existing Item ... ' from the Solution Explorer / Manager context menu in Visual Studio and drag and drop files and folders from that window.

Works on my machine with Visual Studio 2012 ...



回答4:

I had the same issue and noticed I was pulling files from a folder that was compressed. I unzipped all the files and was able to drag and drop into the solutions explorer fine. Make sure your files are not in view mode in a compressed folder.