Guides
Installing Visual Studio components in CI
A required VS workload is missing and installing it takes fifteen minutes.
4 min read
A required VS workload is missing and installing it takes fifteen minutes.
Why it happens
Runner images ship common workloads only, and vs_installer is slow.
How to fix it
- Use vs_installer modify --add with the specific component ID rather than a full workload
- Bake the component into a custom image if it is needed on every run
- Check whether the component is already present before installing
Your next build could be twice as fast, at half the price
Start free. Migrating away is the same one line, and we publish that diff too.
Related
How to make Windows CI fasterWindows jobs take three times as long as the equivalent Linux jobs.How to cache MSBuild outputEvery build recompiles all projects.How to sign Windows binaries in CIAuthenticode signing needs a certificate that must not be exposed.How to parallelise .NET tests.NET tests run serially and take twenty minutes.