VS2017/VS 2019从任务栏以管理员身份运行 [英] VS2017 / VS 2019 Run As Admin from taskbar

查看:502
本文介绍了VS2017/VS 2019从任务栏以管理员身份运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从任务栏的近期列表中选择一个项目时,我想以管理员的身份运行Visual Studio 2017/2019,即.通过Explorer/Shell快捷方式打开项目时.

I would like to run Visual Studio 2017/2019 as admin when I select a project from the recent list in the taskbar, ie. when opening a project via Explorer/Shell shortcuts.

我确实使用了以下设置:属性->快捷方式->高级->以管理员身份运行复选框.

I did use the setting: properties -> shortcut -> advanced -> run as admin checkbox.

不幸的是,这不会导致devenv以管理员身份运行.

Unfortunately, this does not result in devenv running as Administrator.

关于如何解决此问题的任何想法?

Any ideas on how to fix this?

推荐答案

  1. 关闭Visual Studio的所有实例
  2. 右键单击任务栏中的Visual Studio 2017/2019图标
  3. 右键单击Visual Studio 2017/2019,然后单击属性"
  4. 点击打开文件位置按钮
  5. 在该文件夹中右键单击devenv.exe文件
  6. 选择兼容性问题排查
  7. 选择疑难解答程序
  8. 选择程序需要其他权限
  9. 点击测试程序",然后等待程序启动
  10. 然后单击下一步按钮
  11. 选择是,为此程序保存这些设置
  12. 点击关闭
  13. 从最近的列表中重新打开项目
  1. Close all instances of Visual Studio
  2. Right click on the Visual Studio 2017/2019 icon in your task bar
  3. Right click on Visual Studio 2017/2019 and click Properties
  4. Click open File Location button
  5. Right-click devenv.exe file in that folder appears
  6. Select Troubleshoot compatibility
  7. Select Troubleshoot program
  8. Select The program requires additional permissions
  9. Click Test the program and wait for the program to launch
  10. Then click Next button
  11. Select Yes, save these settings for this program
  12. Click Close
  13. Reopen your project from recent list

这篇关于VS2017/VS 2019从任务栏以管理员身份运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆