How to speed up TFS build

If for some reason your TFS build takes up long time to finish, you can easily reduce that time by following a few simple steps:

  • Stop indexing sources
  • Deploy only the files that are necessary to run the application
  • Disable "Analyze test impact"
  • Disable "Associate Changesets and Work Items"

In my case the initial build time took ~130 seconds.

After introducing those simple steps I reduced that time to 70 seconds.

In case you have a big team, that's constantly contributing that really makes a difference! :)