I'm using Visual Studio 2008, C#. I try to use edit-and-continue (edit the code while debugging), and get this exception:
"Changes to 64-bit applications are not allowed"
Why is that? Is there a workaround?
Edit and Continue is not supported on 64 bit applications at the CLR level so there is no way for Visual Studio to implement it either.
The easiest way to work around this problem is to target your application to x86 chips. This will cause it to run in Wow64 mode as a 32 bit process and hence be able to ENC. You can do this by doing the following
Personally, what I actually want is stop-and-edit not edit-and-continue.
So I simply turn off Tools / Options / Debugging / Edit and Continue.
Doing so inhibits that pesky dialog box from pestering me about a missing feature I didn't want in the first place :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With