Problem creating Release EXE

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.
 
A

Arunkumar Keserla

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
 
F

fniles

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.
 
A

Arunkumar Keserla

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top