Visual Studio Run as administrator shortcut

后端 未结 6 1800
甜味超标
甜味超标 2021-02-05 03:58

how do I create a shortcut that runs Visual Studio with Administrator rights?

Actually I have to navigate to the Visual Studio start menu folder, click on the icon with

6条回答
  •  孤独总比滥情好
    2021-02-05 04:33

    The above answers works, but on Windows 10 you might bump with disabled advanced shortcut screen. So for windows 10 do the following:

    1. Create shortcut to the solution file
    2. Right click the shortcut => properties
    3. Choose Shortcut tab
    4. Under Target add the visual studio executable location before the sln path. For example: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" C:\mypath\example\example.sln
    5. Press Advanced under the shortcut tab - you'll be able to edit the advances window.
    6. Select "Run as administrator"
    7. Press ok
    8. Double click the shortcut - you should be able to run the solution as administrator now.

提交回复
热议问题