Make visual studio solution files(sln) always executed as administrator
Locate the devenv.exe
executable on your hard drive. You can usually find it in the following places:
Visual Studio 2013
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Visual Studio 2015
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Visual Studio 2017
C:\Program Files (x86)\Microsoft Visual Studio\2017\<SKU_TYPE>\Common7\IDE\devenv.exe
Right click on the devenv.exe
executable in Windows Explorer and select "Troubleshoot compatibility" and then select "Troubleshoot program." From the next screen select "The program requires additional permissions" and then complete the wizard.
This will change your settings so that any time you try to run Visual Studio you will be running elevated.