Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to drag files into Visual Studio running as admin on Windows 8

As a web developer I find myself hooking a debugger to the IIS proces all the time. In visual studio 2012 this means that you have to have elevated privileges. In general, this is not a problem, just set VS2012 to run as admin and you're done.

Doing this however makes it impossible to drag files into VS2012 from windows explorer. Being too lazy to use the open file dialog I prefer to just drag files in there.

UAC prevents you from doing this so in Windows 7 we would just turn off UAC and be done with it. In windows 8 this does not work.

There are many guides on the internet on how to disable UAC in Windows 8. Most just say you should move the slider to the button. This does however not actually disable the UAC and after trying this you can still not drag/drop files into Visual Studio 2012.

Other guides speak of disabling UAC by changing a registry setting. This turns off the UAC and allows you to drag/drop files into VS2012, but a side effect of this is that Metro apps can no longer be run. Obviously this kinda sucks too...

Does anyone have any ideas on how to be able to

  • Run VS2012 as admin so we can debug iis
  • Be able to drag and drop files into VS2012
  • Be able to run Metro apps

Thanks in advance

like image 864
Robba Avatar asked Aug 28 '12 21:08

Robba


People also ask

Why doesn't drag and drop work when my application is running elevated?

The behavior you are seeing happens due to Microsoft Security mechanisms. If a non-administrative Windows user is logged on to the machine and runs a . NET tool as Administrator, the user cannot drag and drop files into the tool.

Does Visual Studio support drag and drop?

You can add handlers for drag-and-drop events to your DSL, so that users can drag items onto your diagram from other diagrams or from other parts of Visual Studio. You can also add handlers for events such as double-clicks. Together, drag-and-drop and double-click handlers are known as gesture handlers.

How do I run Visual Studio in elevated mode?

On the Windows desktop, right-click the Visual Studio shortcut, and then select Properties. Select the Advanced button, and then select the Run as administrator check box. Select OK, and then select OK again.


1 Answers

Latest version of VSCommands extension for Visual Studio 2012 allows you to run Visual Studio with Medium Integrity Level which will basically allow drag and drop from other windows. You can read more about it here and download the extension from http://visualstudiogallery.msdn.microsoft.com/a83505c6-77b3-44a6-b53b-73d77cba84c8

like image 108
Jarek Kardas Avatar answered Sep 28 '22 02:09

Jarek Kardas