Edit and continue feature stopped working in Visual Studio 2010
I had used Microsoft's profiler yesterday and afterwards my "Edit and continue" feature got away. I finally realized after hours of frustration that I needed to execute VsPerfCLREnv /globaloff command from command prompt and restart my computer. Now I have my Edit and continue future back. It has nothing to do with target platform by the way. It works with target platform set to Any CPU without any hassle.
In the Solution Explorer view, right-click on each reference of References, choose Properties. In the Properties view, sign False to the field of Embed Interop Types. This works for me.
The Edit and Continue feature does not work with the dynamic
keyword.
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
I had some Excel file "embed interop types" == true
. When I changed it to false, edit and continue started working.