本文介绍了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?
推荐答案
- 关闭Visual Studio的所有实例
- 右键单击任务栏中的Visual Studio 2017/2019图标
- 右键单击Visual Studio 2017/2019,然后单击属性"
- 点击打开文件位置按钮
- 在该文件夹中右键单击devenv.exe文件
- 选择兼容性问题排查
- 选择疑难解答程序
- 选择程序需要其他权限
- 点击测试程序",然后等待程序启动
- 然后单击下一步按钮
- 选择是,为此程序保存这些设置
- 点击关闭
- 从最近的列表中重新打开项目
- Close all instances of Visual Studio
- Right click on the Visual Studio 2017/2019 icon in your task bar
- Right click on Visual Studio 2017/2019 and click Properties
- Click open File Location button
- Right-click devenv.exe file in that folder appears
- Select Troubleshoot compatibility
- Select Troubleshoot program
- Select The program requires additional permissions
- Click Test the program and wait for the program to launch
- Then click Next button
- Select Yes, save these settings for this program
- Click Close
- Reopen your project from recent list
这篇关于VS2017/VS 2019从任务栏以管理员身份运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!