0

我正在使用 Visual Studio 2012。

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

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

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

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

4

1 回答 1

0

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

修改评论时“编辑并继续”将不起作用

而且 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

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

于 2016-09-27T12:31:24.543 回答