编辑并继续在Silverlight? [英] Edit and Continue in Silverlight?

查看:171
本文介绍了编辑并继续在Silverlight?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编辑 - 和 - 继续是我最喜欢的调试工具,我有previously用在基于C#的WinForms和ASP.NET项目之一。不过,我在VS 2008中运行一个Silverlight 3.0应用程序,每当我试图做出改变(破后),它说:调试Silverlight应用程序时,不允许更改。也没有一个启用编辑并继续选项,在项目设置。

Edit-And-Continue is one of my favorite debugging tools which I have previously used on C# based Winforms and ASP.NET projects. However, I'm running a Silverlight 3.0 application on VS 2008 and whenever I try to make a change (after breaking) it says "Changes are not allowed when debugging Silverlight applications". Also there isn't an "Enable Edit and Continue" option in the project settings.

有没有人(可能是内部人员),知道什么时候该功能将支持微软??? (我的需要的IT!)

Does anyone (possibly an insider) know when this feature will be supported by Microsoft??? (I NEED IT!)

推荐答案

我怀疑这将永远是一个功能,是诚实的。选管会一直要求您直接连接到您的.exe才能工作。在Silverlight的情况下,.exe文件是浏览器,这是不是你正在开发的.exe文件。

I doubt it will ever be a feature, to be honest. EAC has always required you to attach directly to your .exe in order to work. In the case of Silverlight, that .exe is the browser, which is not the .exe you are developing.

如果你正在寻找运行时编辑XAML,你可能会考虑一个动态加载的情况下,你可以刷新在运行时的控制。在这种情况下,您可以编辑XAML在调试,但我怕你坚持与管理code。

If you are looking to edit XAML while running, you might consider a dynamic loading situation where you can refresh the control at runtime. In that case, you can edit XAML while debugging, but I'm afraid you're stuck with the managed code.

编辑: 你可能会考虑(但我还没有尝试过),一种可能性是写你的code对单元测试。然后,有一个名为 TestDriven.net ,让您的测试与调试EAC(作为一种先进的功能)工具。从那里,你的可能可以做一些EAC,但你可以通过单元测试做这件事,实际上不是在Silverlight的环境。

One possibility that you might consider (but I haven't tried it) is to write your code against unit tests. Then, there is a tool called TestDriven.net that allows you to debug your tests with EAC (as an advanced feature). From there, you might be able to do some EAC, but you will be doing it via unit tests, not actually in the Silverlight environment.

这篇关于编辑并继续在Silverlight?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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