The project is always out of date.

E

Ed

Hi, guys,
I add some new projects. No source file, but only some copy operation
in Post Event.
The project is to do some file deployment for some third party
library.

When I compile the solution, VC assumes the project is always out of
date and execute the Post Event always. It’s boring, the copy
operation will happen always, even if there is no modification in the
solution.

Do you have any ideas?

Thanks!
Ed.
 
S

SvenC

Hi Ed,
I add some new projects. No source file, but only some copy
operation in Post Event. The project is to do some file deployment
for some third party library.

When I compile the solution, VC assumes the project is always out of
date and execute the Post Event always. It’s boring, the copy
operation will happen always, even if there is no modification in the
solution.

Do you have any ideas?

How should the project now that it is up to date or not? You will
always need some source file which has some output files associated
so that file dates can be compared: if output-date < source-date
build the source.
You could add a dummy c file which you only change when you
got a new third party library. So you will get an exe or dll dependant
on your project type which can be compared to the c file date.
To explicity deploy the third party lib again you will need to choose
rebuild for that project.
 
E

Ed

Hi Ed,




How should the project now that it is up to date or not? You will
always need some source file which has some output files associated
so that file dates can be compared: if output-date < source-date
build the source.
You could add a dummy c file which you only change when you
got a new third party library. So you will get an exe or dll dependant
on your project type which can be compared to the c file date.
To explicity deploy the third party lib again you will need to choose
rebuild for that project.

Thank you, SvenC.
That means the project must have an output file, lib, dll, or exe?
 
S

SvenC

Hi Ed,
...
That means the project must have an output file, lib, dll, or exe?

Yes, that gives the build process a reference file to see if the build is
up to date or not.
 

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