WO Central Developers | Design, Code, Test . . . Repeat?

TAG | debugging

Jan/10

26

Edit and Continue under 64-bit

By default Visual Studio does not allow Edit and Continue for Silverlight or 64-bit applications.  Since we all have 64-bit Windows 7 that means having a Platform Target of Any CPU generates 64-bit binaries when debugging.  So when you try to edit while debugging you get this familiar warning:

Changes to 64-bit applications are not allowed

If you change the Platform Target under Build properties on your project to x86 instead of Any CPU for the Debug configuration then you can get Edit and Continue support.

Platform target = x86

Since our automated builds use the Release configuration this shouldn’t cause any trouble for our automated builds, but it makes debugging a lot easier.  I’ve done this for a while and it doesn’t seem to be changing the behavior any, but it just keep in mind that it might have slightly different performance so could impact the debugging on some issues.  It also depends on what kind of applications you write, so act responsibly.

, , , Hide

Find it!

Theme Design by devolux.org