让VS默认以管理员身份运行
In Windows 8 & 10, you have to right-click devenv.exe
and select "Troubleshoot compatibility".
- select "Troubleshoot program"
- check "The program requires additional permissions"
- click "Next"
- click "Test the program..."
- wait for the program to launch
- click "Next"
- select "Yes, save these settings for this program"
- click "Close"
转自 http://stackoverflow.com/questions/12257110/can-you-force-visual-studio-to-always-run-as-an-administrator-in-windows-8