Strange Visual Studio Behavior

My computer began to do something strange the other day and it is seriously annoying. I have not made any changes to the system, but for some reason now, when I double-click on the visual studio solution file, it does not open. The only way to open projects is to open the program, and then go to the file β†’ open and go to the solution.

In addition, I have a program attached to my taskbar (Windows 7), and I have it configured to run as an administrator, but whenever I click a button, it still asks me if I want to allow the program to make changes to my computer, Any thoughts on how I can get things back and work the way they used to?

+4
source share
2 answers
  • Disable UAC
  • Test
  • The solution may be to change the version of Microsoft Visual Studio Selector to run as an administrator. To do this, go to% ProgramFiles% \ Shared files \ Microsoft Shared \ MSEnv or% ProgramFiles (x86)% \ Shared files \ Microsoft Shared \ MSEnv (64-bit), right-click on VSLauncher.exe and select "Properties". Go to the "Compatibility" tab and "Run this program as administrator."
  • Test
  • If the above does not work, try also deleting the contents of C: \ Users \ username \ AppData \ Roaming \ Microsoft \ VisualStudio \ 10.0. If you have any valuable settings, save the folder before deleting it.
+2
source

You probably lost the file association. Right-click the solution file and open it, then select VS2010 from the list and check the box to make it the default.

Regarding opening VS2010 as an administrator, I am using a trick (read it somewhere but don’t remember where).

I have a separate admin icon on my desktop (etc.) with the following:

C:\Windows\System32\schtasks.exe /run /tn "VS2010 - Admin" 

Then in the task scheduler, I have a task:

 Name: VS2010 - Admin Location: \ Desc: Runs VS2010 with Admin privileges Action: Start a Program Run with Highest Priveleges checked Program: "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" Allow to be run on demand 

Then, when you run the icon, it will start the schedule, which will start VS as admin: D

+1
source

All Articles