I have a publish build for several projects in a solution that are deployed using clickonce. I've created a separate publish build in TFS, which basically compiles and deploys these projects.
The TFS build agent is running on the same Hyper-V VM as the TFS Server. The build parameters are as follows:
/target:publish /p:GenerateProjectSpecificOutputFolder=true /property:PublishDir=\\networkshare;PublishingURL=https://www.publish.com /v:m
Output location is set to PerProject
The build itself is quite slow, but the longest time is taken in Copy
binaries to drop
. The drop location is actually located on the same machine as the VM, but it takes over two hours.
Changing "Staging location" from Copy build output to.." to "Copy build output to server has reduced the time significantly, but it still takes two hours, whereas the build itself takes around 5 minutes on my Dev Machine.
Is there anything I can do to debug the build speed? Also, is there a reason why the "Copy build output to..." takes such a ridiculously long time? Ironically, it doesn't appear to do anything different anyway.