tags:

views:

46

answers:

3

for some reason this no longer works. I ugraded the winforms solution from VS2008 to VS2010 and on new machine also Windows 7 64bit but id does not allow edit and continue

I haver set the options to enable it and to compile against 86 cpu

any ideas?

+2  A: 

also Windows 7 64bit

Edit+Continue only works for 32-bit code. Easy fix, and the default now for VS2010 projects: Project + Properties, Build tab, Platform target = x86. You can of course leave that setting for your Release configuration at Any CPU.

Hans Passant
I'm going to go out on the limb and say that this is because VS2010 (like 08, 05, 03, and 02) are all 32-bit applications running in a WOW64 sandbox. But, it is true, you can only edit and continue a 32-bit application (and IFF the method you are editing does not include lambda expressions).
Michael
I've tried all of that. Read the articles.set all the options. Still does not work. I've got no lamda in the code. all set to x86. I am starting to think that it is the 64 bit causing the problem
kurasa
A: 

I've seen this as well. It seems that some stuff of the expressions and lambdas cause this. ;(

kenny
A: 

try this link. quoting from it

  1. Edit and Continue is enabled under Tools>Options>Debugging>Edit and Continue
  2. My solution platform is set to x86
  3. My solution configuration is set to Debug
  4. All my projects are building for Debug and x86
  5. For all projects under Projects>Properties>Build the Optimize code is unchecked
  6. tools->options->unselect intellitrace events and call information
Vinay B R
tried. still no go
kurasa