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
source share