Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enable Edit and Continue on a 64-bit application and VB2008 Express?

When I try to do that I get the following error:

Changes to 64-bit applications are not allowed.


@Wilka: That option wasn't available until I selected Tools > Options > Projects and Solutions > General and check "Show advanced build configurations". Though I found this hint from your MSDN link. So if you edit your comment, I can make it the accepted answer...

Thanks everybody!


Please see my first comment on this question, it's not there... Somehow... I can select Target framework though (2.0, 3.0 and 3.5), not that I see any use of that for this particular problem...


It doesn't have to be a 64bit program, actually, I rather prefer it to be 32bit anyway since it is more like a utility and it should work on 32bit systems.

Also, I'm running Vista at 64bit. Maybe that has something to do with it?

@Rob Cooper: Now I think of it, I never had the chance of selecting either a 64bit or a 32bit application when creating the solution/project/application... And according to your link "64-Bit Debugging (X64)" is possible with MS VB2008 express edition.


Oh btw, I found the following:

If you are debugging a 64-bit application and want to use Edit and Continue, you must change the target platform and compile the application as a 32-bit application. You can change this setting by opening the Project Properties and going to the Compile page. On that page, click Advanced Compile Options and change the Target CPU setting to x86 in the Advanced Compiler Settings dialog box. Link

But I dont see the Target CPU setting...

like image 884
SilverViper Avatar asked Aug 27 '08 13:08

SilverViper


2 Answers

The dialog you're looking for is this one in the project properties:

Platform target

by default, the target will be "Any CPU" which means it'll run as 64bit on a 64bit OS (like you're using), or 32bit on a 32bit OS - so this wont stop it from working on 32bit systems. But like you said, to use Edit & Continue you will need to target x86 (so it runs as 32bit).

Edit: fixed screenshot (I had the C# one, not the VB one)

like image 141
Wilka Avatar answered Nov 12 '22 08:11

Wilka


The "Edit and Continue" feature for 64-bit code will be supported under Visual Studio 2013.

More information here.

like image 2
kenchilada Avatar answered Nov 12 '22 07:11

kenchilada