Tuesday, October 23, 2007

MsBuild and CopyLocal = False

As MsBuild rolls thru building a solution, it calls GetCopyToOutputDirectoryItems as a task (subtask) for each project reference during the CoreCompile task.

If you are using a "build all to one directory" strategy, this is a waste. To change the net effect of this, change all project references to CopyLocal = false.

This decreased our build time from almost 3 minutes to just over 2 minutes.

No comments: