F5 is running an older version of my project

T

Titan

When I run my project (F5), it runs an older version of my project.
However, when I build or rebuild the solution, it builds flawlessly...
so shouldn't this overwrite the older version of my project so that F5
runs the newer version?

Is there a way to clear the older versions (other than deleting the
files manually) and is there something I am doing wrong? I want to
prevent this from happening, as it makes debugging quite confusing!

Titan
 
T

Titan

By the way, deleting the files manually works.

I shut down MSVC# 2005, manually deleted the files, and re-opened the
editor and my project, and F5 properly compiled and ran my project up-
to-date.

I just wanted to know if there's a better way to solve (or avoid) this
problem.

Titan
 
C

Christof Nordiek

Hi Titan,

rebuild should do it.
There are some rare cases, when build doesn't build all what is needed. E.g.
in V2003 (don't know about VS2005) when the only changes of a project are
made are in a resx-file, build doesn't build that project though it should.
Then a rebuild works.

Christof
 
T

Titan

Hi Titan,

rebuild should do it.
There are some rare cases, when build doesn't build all what is needed. E.g.
in V2003 (don't know about VS2005) when the only changes of a project are
made are in a resx-file, build doesn't build that project though it should.
Then a rebuild works.

Christof







- Show quoted text -

I would have thought a rebuild would work when the build did not, but
they both failed. Perhaps this is just an uncommon quirk...

....actually I just realized what may have caused the error! My system
(for some unknown reason) was set two days ahead. It was set to March
10th instead of March 8th. I just set it back today. This system is
only a few days old, and I never noticed the incorrect date until
today. This probably caused the "bug"! Setting the date back
probably confused the editor to think the source files had not changed
because it was determining that on a date comparison, where the last
compile date was March 10th (and therefore files changed today were
determined to not be "new").

Thanks for the help.

Titan
 

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