Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am compiling my project in debug mode in VS2010.

Edit and Continue enabled in Tools->Options->Debugging.

But now when I try to change source code while debugging it shows me a dialog saying unable to compile before I fix given errors, but in error grid no error is shown.

Shortly, I am unable to use E&C. By the way I've just added Excel Interop to project and this happens then but I'm not sure whether this is the reason(E&C not working at all code not in Excel Interop piece.)

Thanks and any advice?
(I read all conditions that disable E&C ,didn't help.Target Env:x86,using 64bit Win7)
Posted
Updated 13-Nov-11 22:48pm
v4

1 solution

I got the answer.When you use dynamic keyword in your code Edit and Continue stop working.Even I didn't used dynamic keyword explicitly ,Excel(or any Office )interop using dynamic properties prevent E&C.When I uncomment these lines ,E&C started working.

Link about bug(or whatever else):
https://connect.microsoft.com/VisualStudio/feedback/details/586636/dynamic-object-as-method-parameters-breaks-edit-and-continue-for-the-class-and-the-project[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900