By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,136 Members | 1,054 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,136 IT Pros & Developers. It's quick & easy.

F5 is running an older version of my project

P: n/a
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

Mar 8 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
Mar 8 '07 #2

P: n/a
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

"Titan" <ti***********@yahoo.comschrieb im Newsbeitrag
news:11**********************@s48g2000cws.googlegr oups.com...
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

Mar 8 '07 #3

P: n/a
On Mar 8, 12:38 pm, "Christof Nordiek" <c...@nospam.dewrote:
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

"Titan" <titan.nyqu...@yahoo.comschrieb im Newsbeitragnews:11**********************@s48g2000c ws.googlegroups.com...
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- Hide quoted text -

- 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

Mar 8 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.