I've got a basic ASP.NET Core web application with automated deployments running via VSTS. I was very surprised to receive an email just now telling me that my free Hosted Pipeline's allowance for this month has expired (4 hours total!). That's fine, only have about a week to wait.
The release definition itself is simple - stop site, clear remote directory, FTP upload, start site.
My main problem is that a full release takes about 10-15 minutes due to the hosting platform requiring a self-contained deployment. As a result, the vast majority of the FTP upload time is spent uploading the .NET Core binaries one-by-one, most of which I'm fairly sure the application is not actually using - the application itself is tiny.
Is there any way I can cut down which binaries are included in this self-contained deployment? Otherwise I fear I might use up my release allowance more often.
It is also worth noting that the .NET Core restore step is the most time-consuming part of the build definition as well, but I am not sure if this is related or not.