views:

225

answers:

1

If I have an msbuild target that just copies changed files, why would incremental building be better than just using the Copy task and setting SkipUnchangedFiles = true?

+1  A: 

Who said it would be?

The only reason I can think of would be if you extended your target later on to perform other tasks then just copying.

Sayed Ibrahim Hashimi
That makes sense. Is the example of incremental building in your msbuild book (p.165) get any benefit from not just being a straight copy? Or, is it just a basic example for the purpose of illustration?
Chris Dwyer
Yeah that was just to keep the example simple. In that case it would be the same.
Sayed Ibrahim Hashimi