Speeding Up .NET Builds on Windows: The NuGet Cache Fix
Windows CI builds always finish last, but is Windows really that slow? Benchmarking the same .NET build on GitHub-hosted Windows and Linux runners revealed that the default NuGet cache location on C: made package restore over three times slower. Learn how moving NUGET_PACKAGES and NUGET_HTTP_CACHE_PATH to the runner's temp drive cut Windows restore times by more than two thirds, and why cross-compiling the same build from Linux keeps surfacing optimizations like this one.
Marc-André Moreau published on
6 min,
1127 words