Problem creating Release EXE

  • Thread starter Thread starter fniles
  • Start date Start date
F

fniles

I am using VisualStudio 2005 (VB.Net).
A weird thing happens. I used to have a button and a textbox on my form, and
I deleted them. I do a Build on a Release mode. But, the EXE that it creates
is dated 8/23/07 4:20 pm. My computer clock says 8/22/07 4:50 pm. And, when
I run the exe, both the button and textbox are still on the form. The Debug
exe is fine. I even added msgbox at form_load, and the message box is shown
on the Debug exe, but not on the Release exe.
No matter what I do/change on the code, the release EXE created is dated
8/22/07 4:50 pm.
What can I do to create the correct Release EXE ?
Thank you.
 
Check whether you have "On Run, when build or deployment errors occur" you
have "Launch old version" or some setting that is causing you to launch the
older version. This setting can be found at Tools->Options->Projects and
Solutions->Build and Run.

-Arun
 
Thank you.
"On Run, when build or deployment errors occur" is set to "Prompt to launch"
"On Run, when projects are out of date" is set to "Prompt to build"
The weird thing is, no matter what I do the exe created is always dated
8/23/07 4:20 pm. I even rebooted my machine and still has the same problem.
 
Try to nuke your bin directory both release and debug. Sometimes, you may
have a release setting when you were expecting a debug version (or vice versa)

-Arun
 
Back
Top