VS2010编辑并继续问题 [英] VS2010 Edit and Continue Problem

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

问题描述

我正在VS2010中以调试模式编译我的项目.

在工具"->选项"->调试"中启用了编辑并继续".

但是现在,当我尝试在调试时更改源代码时,它显示了一个对话框,提示我在修复给定错误之前无法编译,但在错误网格中未显示任何错误.

很快,我无法使用E&C.顺便说一下,我刚刚将Excel Interop添加到项目中,然后发生了这种情况,但是我不确定这是否是原因(E&C在Excel Interop的所有代码中都无法正常工作.)

谢谢,还有任何建议吗?
(我阅读了所有禁用E&C的条件,没有帮助.目标Env:x86,使用64位Win7)

I am compiling my project in debug mode in VS2010.

Edit and Continue enabled in Tools->Options->Debugging.

But now when I try to change source code while debugging it shows me a dialog saying unable to compile before I fix given errors, but in error grid no error is shown.

Shortly, I am unable to use E&C. By the way I''ve just added Excel Interop to project and this happens then but I''m not sure whether this is the reason(E&C not working at all code not in Excel Interop piece.)

Thanks and any advice?
(I read all conditions that disable E&C ,didn''t help.Target Env:x86,using 64bit Win7)

推荐答案

我得到了答案.您代码中的关键字编辑并继续"停止工作.即使我没有显式使用动态关键字,也没有使用动态属性的Excel(或任何Office)互操作阻止E& C.当我取消注释这些行时,E& C开始工作.

有关错误(或其他任何错误)的链接:
I got the answer.When you use dynamic keyword in your code Edit and Continue stop working.Even I didn''t used dynamic keyword explicitly ,Excel(or any Office )interop using dynamic properties prevent E&C.When I uncomment these lines ,E&C started working.

Link about bug(or whatever else):
https://connect.microsoft.com/VisualStudio/feedback/details/586636/dynamic-object-as-method-parameters-breaks-edit-and-continue-for-the-class-and-the-project[^]


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

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