使用Visual Studio 2012,Windows 8和用户帐户控制进行调试 [英] Debugging with Visual Studio 2012, Windows 8 and User Account Control

查看:134
本文介绍了使用Visual Studio 2012,Windows 8和用户帐户控制进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先-这是有关RTM版本的所有内容. Windows 8对UAC进行了一些更改,我们都从 http://www.brianbondy了解到.com/blog/id/140/,则不能无副作用地将其禁用.

First of all - this is all about the RTM Versions. And Windows 8 has some changes regarding the UAC, as we all learned from http://www.brianbondy.com/blog/id/140/, it cannot be disabled side-effect-free.

现在问题开始了: 我们的主应用程序需要提升的特权(至少是服务器部分).调试也仅在以提升模式运行VS时有效.但是,当我以VS提升模式启动Silverlight项目时,由于具有普通特权而启动了调试用的IE,因此也无法进行调试.为了使事情变得更复杂,我们没有在所有(700多个)项目都加载好的情况下运行解决方案,而是在命令行中进行了很多开发工作(编译,启动,测试).哪个也需要提升.

Now the problem starts: Our main app requires elevated privileges (at least the server part). Debugging will only work when running VS in elevated mode, too. But when I'm starting a Silverlight Project in elevated mode of VS, the IE fired up for debugging is started as with normal privileges and debugging is not possible, too. To make things more complicated, we're not running solutions with all (700+) projects loaded, but do lot of our dev-stuff (compiling, starting, testing) in command line. Which needs to be elevated, too.

为此,UAC的正确配置是什么:我希望能够调试在Internet Explorer中运行的Silverlight应用程序,由VS"F5"启动的任何类型的应用程序,从命令行和(也许)C#启动的服务器进程/XAML Metro-Apps?

What is the correct configuration of UAC for this purpose: I want to be able to debug Silverlight applications running in Internet Explorer, Applications of any kind started by VS "F5", a server process started from commandline and (maybe) C#/XAML Metro-Apps?

在Windows 7中,只是禁用了UAC,一切都很好.现在,我感觉像在对抗自己的工具集,对此感觉很不好.

In Windows 7 it was just disabling UAC and everything's fine. Now I feel like fighting against my own toolset and have a bad feeling about this.

请-不要告诉我UAC是重要和有用的.我完全可以,但是对于开发人员来说,情况稍有不同.

And please - do not tell me that UAC is important and useful. I'm totally okay with it, but for a developer things are slightly different.

推荐答案

请参见有关超级用户的答案:

我知道的唯一方法是确保它始终以以下方式打开 管理员(包括当您从文件关联中打开时,跳转 列表等)是:

The Only way I'm aware of which ensures it will always open as Administrator (including when you open from file associations, jump list etc) is:

  1. 在资源管理器中找到devenv.exe文件,例如我的文件位于C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\

  1. Locate the devenv.exe file in Explorer eg mine is in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\

右键单击devenv.exe并选择故障排除兼容性"

Right-click devenv.exe and choose "Troubleshoot compatibility"

选择疑难解答程序"

选择此程序需要其他权限"

Select "This program requires additional permissions"

您需要先让它启动VS,然后再单击下一步",但是 那么您就完成了.

You'll need to let it launch VS before it lets you click Next, but then you're done.

非常烦人,您不能仅仅通过正常的方式来做到这一点 属性对话框.就像微软要走了 确保Windows 8疏远尽可能多的人的方法...

EXTREMELY annoying that you can't just do this through the normal properties dialog any more. It's like Microsoft are going out of their way to ensure Windows 8 alienates as many people as possible...

这篇关于使用Visual Studio 2012,Windows 8和用户帐户控制进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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