编辑和继续功能在Visual Studio 2010中停止工作 [英] Edit and continue feature stopped working in Visual Studio 2010

查看:411
本文介绍了编辑和继续功能在Visual Studio 2010中停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2010中停止了Visual Studio编辑和继续功能,我不知道是什么导致了问题。

The Visual Studio Edit and Continue feature stopped on Visual Studio 2010, and I don't know what has caused the problem.

我正在使用Windows应用程序程序使用C#。此应用程序最初是在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.

实际上,没有编译错误,我必须重新启动

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?

推荐答案

编辑和继续功能不适用于动态关键字。

The Edit and Continue feature does not work with the dynamic keyword.

我试图删除使用动态参数的方法,转换的项目现在可以在Visual Studio 2010上工作。

I tried to remove the method that uses a dynamic parameter, and the converted project now works on Visual Studio 2010.

互联网研究显示,这是一个已经向微软报告的错误。以下链接有更多详细信息:

Internet research reveals that is is a bug that has been reported to Microsoft. The link below has more details:

  • Dynamic object as method parameters breaks edit and continue for the class and the project

这篇关于编辑和继续功能在Visual Studio 2010中停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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