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. 6 1136
Hi,
If you are using vs 2005 try going to the build menu and clean
solution.
Ken
-----------------
"Martin Horn" <mv****@theinte rnet.com> wrote in message
news:Mc******** *********@newsf e6-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.
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***@bellsout h.net> wrote in message
news:et******** ******@TK2MSFTN GP09.phx.gbl... Hi,
If you are using vs 2005 try going to the build menu and clean solution.
Ken ----------------- "Martin Horn" <mv****@theinte rnet.com> wrote in message news:Mc******** *********@newsf e6-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.
"Martin Horn" <mv****@theinte rnet.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/>
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(ByVa l sender As System.Object, _
ByVal e As System.EventArg s) 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.LastAccessT ime = Date.Today
fri.LastWriteTi me = Date.Today
Next fri
Dim dirs As DirectoryInfo() = _
di.GetDirectori es("*.*", _
SearchOption.Al lDirectories)
For Each diNext In dirs
fiArr = diNext.GetFiles
For Each fri In fiArr
fri.LastAccessT ime = Date.Today
fri.LastWriteTi me = Date.Today
Next fri
Next
Catch ex As Exception
Debug.Print("Th e process failed: {0}", _
ex.ToString())
End Try
End Sub
End Class
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:u8******** ******@TK2MSFTN GP09.phx.gbl... "Martin Horn" <mv****@theinte rnet.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/>
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
Thanks Andrew,
downloaded and now residing in my 'utils' folder...
Martin.
"Andrew Morton" <ak*@in-press.co.uk.inv alid> wrote in message
news:OO******** *****@TK2MSFTNG P12.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 you have your ".cpp" files all ready, without any "#include"
or "#define" in them.
Let's assume that there's 2 source files in this project, "a.cpp" and
|
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 those parts of the
code which are different on desktop and smart device projects
2. How can I actually share the same .cs source code files between the two
projects. If I try to open a smart device project and add the files which
are in the...
|
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 patch only those
dlls that have changed. We have a program that looks into VSS code to
check for changes in source code, but there is a limitation there, we
fall into trouble the following way:
1. We change a Object type in one.dll.
2. Since...
|
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 isomorphism
between filesystem and namespace, doesn't seem very well suited for
big projects. However, I might not really understand the Pythonic way.
I'm not sure if I have a specific question here, just a general plea
for advice.
1) Namespace....
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| | |