问题描述
在 Windows 7 中,您可以进入程序兼容性设置并勾选以始终以管理员身份运行.Windows 8 中是否有类似的选项?
In Windows 7, you could go into a programs compatibility settings and check off to always run as an Administrator. Is there a similar option in Windows 8?
我一直在我的机器上禁用 UAC,在我升级 Windows 8 后也这样做,或者我是这么认为的.事实证明没有 off
选项,只能关闭通知.
I've always disabled UAC on my machines, and did the same after my Windows 8 upgrade, or so I thought. It turns out there is no off
option, only turning off the notifications.
这意味着即使在管理员组中,也不会以管理员身份运行任何内容.当我尝试调试(附加到进程,而不是 )时,我需要不断关闭并重新打开我的控制台Visual Studio,这非常令人沮丧.
This means nothing is run as an Administrator despite being in the Administrator group. I need to keep closing and reopening my consolesVisual Studio when I try to debug (attach to process, not ), which is very frustrating.
当我第一次去调试时,我需要记住采取额外的步骤以管理员身份打开它,或者告诉它关闭并重新打开,这真的很烦人.
It's really annoying that I need to either remember to take extra steps to open it as an Administrator or tell it to close and re-open when I go to debug for the first time.
推荐答案
In Windows 8 &10、您必须右键单击devenv.exe
,然后选择兼容性疑难解答".
In Windows 8 & 10, you have to right-click devenv.exe
and select "Troubleshoot compatibility".
- 选择程序疑难解答"
- 勾选该程序需要额外的权限"
- 点击下一步"
- 点击测试程序..."
- 等待程序启动
- 点击下一步"
- 选择是,为此程序保存这些设置"
- 点击关闭"
如果,当您打开 Visual Studio 时,它要求将更改保存到 devenv.sln,请参阅此答案以禁用它:
If, when you open Visual Studio it asks to save changes to devenv.sln, see this answer to disable it:
禁用 Visual Studio devenv 解决方案保存对话框
如果您改变主意并希望撤消以管理员身份运行"兼容性设置,请在此处查看答案:如何修复无法识别的问题Visual Studio 2015 中的指南格式
If you change your mind and wish to undo the "Run As Administrator" Compatibility setting, see the answer here: How to Fix Unrecognized Guid format in Visual Studio 2015
这篇关于您能否强制 Visual Studio 在 Windows 8 中始终以管理员身份运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!