I have a custom build step in which the Commands are:
and the Outputs are
I assigned this custom build step to 10 of my projects. When I compile these projects in a batch, the custom build step is invoked before the first project output file is produced. Subsequent project compilations invoke the same custome build step and produce the error:
I thought that, by adding the entries in the Output section of the Custom Build tab, the timestamps would be compared and the actions would be conditionally performed. I guess this was wrong. How can I conditionally perform the Custom Build steps I need and avoid this error?
Code:
mkdir ..\MYPROGRAM\HELP
mkdir ..\MYPROGRAM\DATA
mkdir ..\MYPROGRAM\LOGS
mkdir ..\MYPROGRAM\DEMO
and the Outputs are
Code:
..\MYPROGRAM\DEMO
..\MYPROGRAM\DATA
..\MYPROGRAM\HELP
..\MYPROGRAM\LOGS
I assigned this custom build step to 10 of my projects. When I compile these projects in a batch, the custom build step is invoked before the first project output file is produced. Subsequent project compilations invoke the same custome build step and produce the error:
Code:
Performing Custom Build Step on \MYPROGRAM\IEXCLDEF.exe
A subdirectory or file ..\MYPROGRAM\DEMO already exists.
A subdirectory or file ..\MYPROGRAM\DATA already exists.
A subdirectory or file ..\MYPROGRAM\HELP already exists.
A subdirectory or file ..\MYPROGRAM\LOGS already exists.
I thought that, by adding the entries in the Output section of the Custom Build tab, the timestamps would be compared and the actions would be conditionally performed. I guess this was wrong. How can I conditionally perform the Custom Build steps I need and avoid this error?