I have asp.net core 2.0 app, which references Microsoft.AspNetCore.All metadata package
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
and I have following build in VSTS which I build using hosted build agent.
Why it always takes min 95 seconds to restore the packages? I thought that
Microsoft.AspNetCore.All
packages are cached in ".NET Core runtime store" so they don't have to be restored.- When I restore the packages once, they don't have to be be restored again in every build, since they are cached.
Why is dotnet restore so slow in VSTS?
Edit: Vote for better VSTS build performance here: https://visualstudio.uservoice.com/forums/330519-visual-studio-team-services/suggestions/32044321-improve-hosted-build-agent-performance