I am working with an application that is built from several solutions.
When I build all of them on my local machine, it takes about 6 minutes. But when you create the TFS assembly on the server โ the virtual machine that runs Windows Server 2003 R2 with the TFS 2010 agent โ it takes up to 40 minutes.
I use non-incremental build (and I know that it takes more time ..), and the get-source part takes only about 2 minutes.
I canโt understand why this can take such a long time compared to the local build. A solution that takes about 1.5 minutes on my local machine takes about 9 minutes on this server.
Any ideas / advice / recommendations, why this is happening / how to solve this problem?
UPDATE
I tried using a parallel assembly (using / m: 4), but it fails, I probably incorrectly defined the dependencies or something (I will check this later ..).
The VM build server is a quad core, 4G RAM.
I used MSBuild directly on this server, and a solution that takes 7.5-9.5 minutes when the agent starts the full build takes only 2.5 minutes. Is there anything the TFS build agent can do? (I REALLY do not understand this ...)
Thank you, young programmer.
source share