Can't drag files to Solution Explorer - visual-studio

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?

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.

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

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 ...

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.

Related

Changes made to *.wpp.targets file reflect only after reopening Visual Studio

I have MyProject.Publish.wpp.targets file in the root of that project folder.
When I edit this file & publish the project, it doesn't take the new changes.
I have to reopen the Visual Studio and publish for the new changes to apply.
How to fix this.
Using Visual Studio 2019.
Drag the files / folders from Windows Explorer into the Solution Explorer. It will add them all. Note this doesn't work if Visual Studio is in Administrator Mode, because Windows Explorer is a User Mode process.

Visual Studio 2013 - Delete file from solution explorer

I opened a solution in Visual Studio with some files/folders. Inside of windows explorer, I deleted 2 files inside of a folder within the solution. The files are locked in visual studio, and they can't be found because I deleted them.
How can I delete those files from Visual Studio? They are locked in solution explorer and they can't be found because they were deleted in Windows Explorer.
You should definitely inspect your .csproj file of the project from Windows Explorer. Then manually remove any references from there. Not perfect, but should help.

Project Not Loading in Visual Studio 2010

I recently installed the Windows Phone 7 SDK that came bundled with Visual Studio 2010 Express for Windows Phone. I downloaded a sample app and tried to open the solution file. When I checked the solution view window, the app project was not loaded. Every time I tried to reload the project, it flash as available for a moment and then go back to being unavailable. I tried all the usual tricks like removing source control from the .csproj and deleting the .user and .suo files. Any ideas?
Ok I figured it out. When I open the solution file, it opens in Visual Studio 2010 Shell. What I needed to do was to go to Visual Studio 2010 for Windows Phone, open existing project, and then browse to the solution file and open it. Sorry for the confusion everyone!

Project needs to be opened by Visual Studio 2008 by default in Windows 8

I have installed visual studio 2008 and 2010 and also vs 2012 on windows 8. Now if I open a vs 2008 project, it asks me to convert it to vs 2010 which I don't want.
In windows 8 I tried "open with" but I can't see vs 2008 in programs, when i go to it's destination and try to open it, it opens up as VS 2010 again.
Update
Problem isn't that i can't open projects with VS 2008, problem is I am not able to force a VS 2008 solution to be opened by VS 2008 (by default).
I can open the project by opening VS 2008 and then use file -> Open
These projects are in SVN Tortoise Repository, on windows 7 they open by VS 2008 by default but now I got windows 8 so each time I open project, it asks me for this,
Sorry for confusion.
Not sure why it's working the way it use to work in Windows 7 but I will look it into it, however I am able to fix the problem by,
I think problem came up because I installed VS 2012 and VS 2010 first and then installed VS 2008 at end.
I am experienced something similar.
Windows 8.1 with VS2008 and VS2013 installed.
Problem:
Right mouse select a VS2008 .sln file in File manager.
Select "Open with..." from the menu
The dialog shows one choice, VS2013.
From the "How do you want to open this file?" dialog, select "More Options"
Scroll down past all the new choices and select "Look for another app on this PC"
Paste in the path to VS2008. Example: "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
It runs VS2013 instead.
Also, using "File->Properties" to associate the .sln file with VS2008 did not work as I expected. After setting the file association, I expected the be able to double click on that .sln file and bring up VS2008 but it ran VS2013 instead.
Solution:
After using "File->Properties" to attempt to associate the .sln file with VS2008 something has changed.
Now when I attempt step 2 ("Open with..") I get 2 choices: VS2013 and "Visual Studio Version Selector". Selecting "Version Selector" with "Use the App for all .sln files" checked will cause subsequent .sln files to be opened with the correct Visual Studio.

Why is it no longer possible to drag files to solution explorer in Visual Studio 2012?

In VS2010 I could always drag files to the solution explorer. This no longer works in Visual Studio 2012. How can I enable this?
It is a Windows 'feature' as I read in this answer:
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?

Resources