4

If I Build my solution from VS, it takes less than a minute to do all the checks to tell me all the projects have been built. If I do the same in team foundation build, it takes closer to 20 minutes. i define as "items to build" only the solution (.sln file) and solution has 32 "projects".

Arash Kh
  • 39
  • 1
  • 5

1 Answers1

3

Check the build definition workspace, make sure you are only pulling doen the code you need for the build.

Also TFS does a clean compile, I.e. it pulls down all of the code then rebuilds everything from scratch. How long does a clean build take locally? Less than a minute to build 32 projects seems quick so I suspect that your local build is incremental rather than full.

Run a build with diangnostic loging, this should give you a clue to the parts that are taking the time.

James Reed
  • 13,873
  • 51
  • 60
  • Then there used to be a sln.cache file (or similar) that kept track of some project ordering? Like, it wouldn't be there the first time, but would be there later. A "clean" TFS build wouldn't have the order. – granadaCoder Jul 15 '13 at 20:16