473,503 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changed Date on PC, now project doesn't compile source code changes

Hi,

I have encountered a problem with compiling my project. Basically what
happened was that I noticed my PC date was set a day into the future, so I
reset it to the correct date. Now when I compile my project it ignores any
changes I have made to the source code.

Can anyone help me to fix this problem, I have tried obvious stuff like
deleting the Bin folder and re-saving the source files to make sure they
don't have dates in the future, but it still doesn't work.

So far the only solution I have found is to either keep the date a day ahead
or wait until the real date catches up with the date of the project, neither
of which is really an option. Also the second option would be impossible if
for example, the date was out by a year!

There must be a simple way to fix this, can anyone help?

Kind regards,

Martin Horn.
Jan 20 '06 #1
6 1127
Hi,

If you are using vs 2005 try going to the build menu and clean
solution.

Ken
-----------------
"Martin Horn" <mv****@theinternet.com> wrote in message
news:Mc*****************@newsfe6-win.ntli.net...
Hi,

I have encountered a problem with compiling my project. Basically what
happened was that I noticed my PC date was set a day into the future, so I
reset it to the correct date. Now when I compile my project it ignores any
changes I have made to the source code.

Can anyone help me to fix this problem, I have tried obvious stuff like
deleting the Bin folder and re-saving the source files to make sure they
don't have dates in the future, but it still doesn't work.

So far the only solution I have found is to either keep the date a day
ahead or wait until the real date catches up with the date of the project,
neither of which is really an option. Also the second option would be
impossible if for example, the date was out by a year!

There must be a simple way to fix this, can anyone help?

Kind regards,

Martin Horn.

Jan 20 '06 #2
Hi Ken,

tried that as suggested, didn't fix the problem.

It's a bit scary that I can break a project just by changing the date on the
PC!

Martin.

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:et**************@TK2MSFTNGP09.phx.gbl...
Hi,

If you are using vs 2005 try going to the build menu and clean
solution.

Ken
-----------------
"Martin Horn" <mv****@theinternet.com> wrote in message
news:Mc*****************@newsfe6-win.ntli.net...
Hi,

I have encountered a problem with compiling my project. Basically what
happened was that I noticed my PC date was set a day into the future, so
I reset it to the correct date. Now when I compile my project it ignores
any changes I have made to the source code.

Can anyone help me to fix this problem, I have tried obvious stuff like
deleting the Bin folder and re-saving the source files to make sure they
don't have dates in the future, but it still doesn't work.

So far the only solution I have found is to either keep the date a day
ahead or wait until the real date catches up with the date of the
project, neither of which is really an option. Also the second option
would be impossible if for example, the date was out by a year!

There must be a simple way to fix this, can anyone help?

Kind regards,

Martin Horn.


Jan 20 '06 #3
"Martin Horn" <mv****@theinternet.com> schrieb:
tried that as suggested, didn't fix the problem.

It's a bit scary that I can break a project just by changing the date on
the PC!


I have heard about this problem in the past. I suggest to search for tools
which can be used to change file times.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 20 '06 #4
I had a suspicion it was going to come to this, and I had already had a look
for free 'touch' utils that could handle multiple dirs/files, without much
success.

So I wrote my own, which has fixed the problem for me.

Here is what I came up with in case anyone wants to use it.

Thanks for the feedback,

Kind regards,

Martin.

Imports System
Imports System.IO
Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load

' Change this to the folder that contains your project
Dim di As DirectoryInfo = New DirectoryInfo("C:\Prog")

Dim diNext As DirectoryInfo
Dim fiArr As FileInfo()
Dim fri As FileInfo

Try
fiArr = di.GetFiles
For Each fri In fiArr
fri.LastAccessTime = Date.Today
fri.LastWriteTime = Date.Today
Next fri

Dim dirs As DirectoryInfo() = _
di.GetDirectories("*.*", _
SearchOption.AllDirectories)

For Each diNext In dirs
fiArr = diNext.GetFiles
For Each fri In fiArr
fri.LastAccessTime = Date.Today
fri.LastWriteTime = Date.Today
Next fri
Next
Catch ex As Exception
Debug.Print("The process failed: {0}", _
ex.ToString())
End Try
End Sub
End Class

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
"Martin Horn" <mv****@theinternet.com> schrieb:
tried that as suggested, didn't fix the problem.

It's a bit scary that I can break a project just by changing the date on
the PC!


I have heard about this problem in the past. I suggest to search for
tools which can be used to change file times.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 20 '06 #5
Martin Horn wrote:
I had a suspicion it was going to come to this, and I had already had
a look for free 'touch' utils that could handle multiple dirs/files,
without much success.


JFTR,
http://home.worldonline.dk/ninotech/freeutil.htm

Andrew
Jan 23 '06 #6
Thanks Andrew,

downloaded and now residing in my 'utils' folder...

Martin.

"Andrew Morton" <ak*@in-press.co.uk.invalid> wrote in message
news:OO*************@TK2MSFTNGP12.phx.gbl...
Martin Horn wrote:
I had a suspicion it was going to come to this, and I had already had
a look for free 'touch' utils that could handle multiple dirs/files,
without much success.


JFTR,
http://home.worldonline.dk/ninotech/freeutil.htm

Andrew

Jan 24 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
3140
by: JKop | last post by:
Here's what I know so far: You have a C++ project. You have source files in it. When you go to compile it, first thing the preprocessor sticks the header files into each source file. So now...
7
3090
by: Dan | last post by:
I'd like to have a set of more-or-less common code which I want to use for both desktop and smart device projects. I have two questions: 1. How can I set up conditional compile directives for...
3
1852
by: Jack Wright | last post by:
Dear All, We are a company developing large scale software in .net Windows Forms. We use the Updater Application for updating our clients. We often send patches of our application. Our aim is to...
49
3888
by: Martin Unsal | last post by:
I'm using Python for what is becoming a sizeable project and I'm already running into problems organizing code and importing packages. I feel like the Python package system, in particular the...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.