#if !SILVERLIGHT & "Edit and Continue" issue?#if !SILVERLIGHT & "Edit and Continue" issue?
Old forum URL: forums.lhotka.net/forums/t/7105.aspx
Peran posted on Monday, June 15, 2009
I have started to get an issue in VS when the debugger hits a break point, I press F5 to continue (*without* making any changes to the code) and I get the following dialog.
Edit and Continue
Edits were made which cannot be compiled. Execution cannot contiune until the compile errors are fixed.
I have not made any changes and the code builds fine. There are indications on the internet that this may be a VS bug that occurs when code is run within a conditional compilation statement.
My code has numerous #if !SILVERLIGHT statements, and I am testing via a dotNet UI rather than a Silverlight UI. Have any other cslalight developers come across this or have a work around?
Cheers
Peran
cds replied on Monday, June 15, 2009
Yes, I've come across it, and it's a major pain.
I haven't yet figured out under exactly what circumstances it occurs. What I generally do is find somewhere else in my call stack to set the breakpoint and magically that seems to fix things.
I'm sure it's a VS bug though.
Sorry I can't be much help.
CraigPeran replied on Monday, June 22, 2009
I could not get your fix to work, but I did find a different work around; by detaching & re-attaching the debugger (Debug->Detach All; Debug->Attach To Process...) the issue did not occur for the remainder of that debug session.
Copyright (c) Marimer LLC