问题描述
在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.
这意味着尽管位于管理员组中,但没有任何内容以管理员身份运行.当我尝试调试(附加到进程,而不是)时,我需要保持关闭并重新打开consoles \ Visual Studio,这非常令人沮丧.
This means nothing is run as an Administrator despite being in the Administrator group. I need to keep closing and reopening my consoles\Visual 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.
推荐答案
在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 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中始终以管理员身份运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!