jcvandan
jcvandan

Reputation: 14314

Speeding up solution build in Visual Studio Team Services (was VS Online)

I am using Team Services for my application build/deploy but I am finding that the build step is extremely slow. It ranges in time from 6 minutes to sometimes 15 minutes just for the solution build. A large proportion of this time is taken up by the nuget package restore, which can be up to 5 minutes.

The way I see it there are 2 potential ways in which I could speed up the build time, but I am unsure if it is possible to do these things:

  1. Configure Team Services to clone the repository to the same disk location each time it does a build so that it only needs to restore new / remove old nuget packages
  2. Upgrade the power of the build agent

Does anyone know if either of these things are possible, or does anyone have any other tips on how to speed up the build step?

Upvotes: 2

Views: 489

Answers (1)

Daniel Mann
Daniel Mann

Reputation: 59018

If you're using the hosted queue, it has to clone the repo and restore the packages every time -- you don't get a dedicated agent, so every build is from scratch.

You can set up an on-premise build agent if you need capabilities that exceed those of the hosted agent.

Upvotes: 3

Related Questions