Visual Studio 2012编辑并继续不使用动态

时间:2016-09-26 22:03:49

标签: visual-studio-2012 visual-studio-debugging edit-and-continue

我正在使用Visual Studio 2012。

在我的C#项目中,我使用了一个类型化的DataTable类,它在一些方法实现中使用了dynamic关键字(Handcrafted Strongly Typed ADO.net DataTable - Can it be cleaner?)。

调试时,我无法使用编辑和继续功能。我收到错误:

"Modifying a 'method' which contains a dynamic invocation will prevent the debug session from continuing while Edit and Continue is enabled."

我已经读过其他类似的线程,它们提到在所有引用的程序集中将EmbedInteropTypes设置为false。但就我而言,它们已经被设置为假。我在网上也发现了VS2010报告的这个问题;从VS2012开始没有固定吗?

1 个答案:

答案 0 :(得分:0)

在使用VS2012之前,其他成员也遇到了同样的问题:

Edit and Continue will not work when modifying a comment

E& C确实有一些默认限制:

https://msdn.microsoft.com/en-us/library/ms164927(v=vs.110).aspx

我帮助您向连接报告小组提交反馈:

https://connect.microsoft.com/VisualStudio/feedbackdetail/view/3104579/visual-studio-2012-edit-and-continue-not-working-with-dynamic

产品团队将与我们分享最新信息。

相关问题