The simple solution to Run Visual Studio as Administrator is Right Click on Visual Studio shortcut and click on Run as administrator.

and now your Visual Studio is running as Administrator mode


But once you close the current instance, next time when you open the visual studio you have to repeat the same step. We can force Visual studio to always run as Administrator by following below steps:

1. In first screen instead clicking on Run as administrator click on Properties ( last option ), and in Properties window click on Open File Location.


Step 2 : Right Click on devenv.exe and select Troubleshoot compatibility



Step 3 : In Program Compatibility Troubleshooter window click on Troubleshoot program

Step 4 :  In next window check The program requires additional permissions and click Next

Step 5: In next window click on button Test the program

If it ask for confirmation click on Yes


Step 6: Wait for program to launch

Step 7 : Click on Next

Step 8 : In next window Click on Yes, save these settings for this program

It will take few minutes to save the settings

Step 10: Finally click Close. You are all set :)


--Anand



Loading