I'm using VS2008 to build a compact framework app. I delete the CAB file
generated by the installer project, switch the configuration to RELEASE,
Clean Solution, Build All.
What I find very odd is that the generated CAB file seems to be a DEBUG
build. I say this because on my splash screen I have a great big label with
the word DEBUG on it, and in the constructor of that form I have
#if DEBUG
LabelDebug.Visi ble = true;
#else
LabelDebug.Visi ble = false;
#endif
When I switch between release and debug config I see the relevant code
disabled/enabled, but when I run the CAB file on a pocket PC and then run
the app I see the debug label on my splash screen. To solve this problem I
had to delete all OBJ and BIN folders in my source code tree and then
rebuild again, after doing this it worked.
Can anyone tell me why this is happening? I find it extremely dodgy that
the build is coming out wrong!
Thanks
Pete
generated by the installer project, switch the configuration to RELEASE,
Clean Solution, Build All.
What I find very odd is that the generated CAB file seems to be a DEBUG
build. I say this because on my splash screen I have a great big label with
the word DEBUG on it, and in the constructor of that form I have
#if DEBUG
LabelDebug.Visi ble = true;
#else
LabelDebug.Visi ble = false;
#endif
When I switch between release and debug config I see the relevant code
disabled/enabled, but when I run the CAB file on a pocket PC and then run
the app I see the debug label on my splash screen. To solve this problem I
had to delete all OBJ and BIN folders in my source code tree and then
rebuild again, after doing this it worked.
Can anyone tell me why this is happening? I find it extremely dodgy that
the build is coming out wrong!
Thanks
Pete