Hi!
Running nightly build 4977, I'm seeing pre-build commands executing twice for some projects.
(I'm not saying that this problem appeared with 4977, BTW, I don't know: I just started to use pre-build and post-build with this build.)
I have a workspace with several projects. Project NVDLinux is a dependency of project NVDCopy. Both have a dummy pre-Build that just echoes.
The first project, NVDLinux, executes its pre-build command only once.
Ditto if it is built separately.
The second project, NVDCopy, executes its prebuild commande twice:
-------------- Build: Release in NVDLinux ---------------
Running project pre-build steps
echo "NVDLinux Pre-build steps"
NVDLinux Pre-build steps
Target is up to date.
-------------- Build: Release in NVDCopy ---------------
Running project pre-build steps
echo "NVDCopy Pre-build steps"
NVDCopy Pre-build steps
Running project pre-build steps
echo "NVDCopy Pre-build steps"
NVDCopy Pre-build steps
Target is up to date.
Process terminated with status 0 (0 minutes, 2 seconds)
0 errors, 0 warnings
In both cases, the pre-build command is defined at the project level (rather than on one of the targets), and nothing specific is defined for the targets.
Looking at the cbp files, both have a single pre-build command, defined only once:
<ExtraCommands>
<Add before='echo "NVDCopy Pre-build steps"' />
</ExtraCommands>
(and no, I didn't inadvertently copy the same command string in the Post-build field!

)
Same problem occurs on some other projects, too.
I did several rounds of testing, varying the number of dependencies, etc., but couldn't find what triggers the problem and makes project NVDCopy "different" from the NVDLinux one.
Anybody seen this before?
TIA,
Phil.