Wednesday, October 10, 2012

Team Foundation Server 2012: Multi-Proc build

When you are creating a new build definition in TFS 2012, you’ll notice that a new build setting is added to the MSBuild options:


The MSBuild Multi-Proc setting allows MSBuild to build multiple projects in parallel. This setting is not new but now it’s easy accessible  without the need for extra customization.

Biggest advantage of enabling this setting is speed. I noticed a big decrease in build time(for large projects) with a factor 2 to 4.

Remark: Be careful when enabling this property, in some situations I started to get ‘Access Denied’ exceptions as multiple projects tried to write to the same folder concurrently.(And I noticed that I’m not the only one with problems when enabling this setting.)

No comments: