编辑并继续功能在 Visual Studio 2010 中停止工作 [英] Edit and continue feature stopped working in Visual Studio 2010
问题描述
Visual Studio 的编辑并继续功能在 Visual Studio 2010 上停止了,我不知道是什么导致了这个问题.
The Visual Studio Edit and Continue feature stopped on Visual Studio 2010, and I don't know what has caused the problem.
我正在使用 C# 开发 Windows 应用程序.此应用程序最初是在 Visual Studio 2008 中开发的,后来升级到 Visual Studio 2010.
I am working on a Windows application program using C#. This application was initially developed in Visual Studio 2008, and later upgraded to Visual Studio 2010.
一切正常,包括编辑并继续,直到我将 .NET Framework 从 3.5 升级到 4.0.
Everything was working fine, including Edit and Continue, until I upgraded the .NET Framework from 3.5 to 4.0.
现在,当我使用调试模式时,更改 IDE 中的任何代码行都会导致以下消息:
Now when I use debug mode, changing any line of the code in the IDE results in the following message:
进行了无法编译的编辑.执行不能继续,直到编译错误已修复.
Edits were made which cannot compiled. Execution cannot continue until the compile errors are fixed.
实际上,没有编译错误,我必须重新启动 Visual Studio 才能运行更新.
Actually, there are no compilation errors, and I must restart the Visual studio to get the updates to run.
如何让编辑并继续工作?
How can I get Edit and Continue to work again?
推荐答案
编辑并继续"功能不适用于 dynamic
关键字.
The Edit and Continue feature does not work with the dynamic
keyword.
我尝试删除使用 dynamic
参数的方法,转换后的项目现在可以在 Visual Studio 2010 上运行.
I tried to remove the method that uses a dynamic
parameter, and the converted project now works on Visual Studio 2010.
互联网研究表明这是一个已报告给 Microsoft 的错误.下面的链接有更多详细信息:
Internet research reveals that is is a bug that has been reported to Microsoft. The link below has more details:
这篇关于编辑并继续功能在 Visual Studio 2010 中停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!