Alex Rivera | Logout

Improving CI build time (.NET)

Asked 2011-12-26T05:59:53.817
24

We are developing an application framework + "plugins" using TeamCity as a CI server.

Project Details

  1. 4 Visual Studio solutions
  2. ~70 projects (and increasing)
  3. Currently running 2 builds using TeamCity: CI and FULL build.

CI - triggered on every commit.

FULL - runs nightly.

I would like to improve the performance of both builds (especially the CI build, as it needs to give its output as quickly as possible).

Are there any guidelines in general on what can be effectively and easily improved?

The build process simply builds a .sln file and runs some unit tests.

Directions Considered:

  • MSBuild parallelization
  • Overriding CopyFilesToLocal

Not sure these are applicable/will result in a performance gain.

I am looking for more ways to improve the build time (which takes around 3-4 minutes).

Edit
Report

1 Answer

4
  1. Set Copy Local to false of course can save you tons of seconds.

  2. Besides, using RAM disk is also a good idea,

  3. Reduce your project number (merge them if possible)

References:

http://blogs.microsoft.co.il/blogs/arik/archive/2011/05/17/speed-up-visual-studio-builds.aspx

http://www.simple-talk.com/content/print.aspx?article=1237

answered 2011-12-26T08:55:24.140

Your Answer