I maintain a build system for building C# solutions.
The code base is componentized by VS solution files and there are currently about 160 components in the code base.
The automated builds are run on a dedicated build server using CruiseControl and NAnt to build the entire code base each build.
One of the components consists of about 120 C# projects. On development machines and up until recently on the build server a complete rebuild of this solution took between 3 and 4 minutes.
About 2 weeks ago, between one build and the next, the compile time for this component jumped to 16 minutes. No other component exhibited a similar increase in build time.
We assumed this had something to do with intermediate files hanging around somewhere, so I deleted the entire AccuRev workspace and repopulated it on the build machine.
Build times for this component dropped back to around 3 minutes for 10 builds (over 4 days) and then jumped back to 16 minutes.
After a couple of days I repeated the workspace delete and repopulate and the build times dropped back to 3 minutes for 5 builds this time before jumping back to 16 minutes.
I have archived log files, freed up disk space and defragmented the hard drive.
I'm at a bit of a loss to explain why this is happening.
This only occurs on the build machine, developer builds take 3-4 minutes.
If anyone has any tips on what might be causing a dramatic increase in compile time for a C# solution like this, I'd appreciate hearing them.
Thanks,