I run NuGet Pack on my TeamCity server to create NuGet packages that Deployment Manager can consume. This generally works very well, but in one instance I need to package about 2 GB's worth of files (don't ask!) and now the going get tough...
The first error, reported by NuGet Pack in TeamCity, was quickly remedied:
Failed to publish artifacts. Artifact size exceeds maximum allowed size of 300000000 bytes
I was prepared for this thanks to your description at the end of this document: http://www.red-gate.com/supportcenter/C ... t_packages
But the second error has stumped me so far:
[pack] Exception of type 'System.OutOfMemoryException' was thrown.
I realize that this is more of a TeamCity rather than Red Gate issue, but I wonder if you have any tips on how to compress files on the source server before they are packed by the build server? This would certainly reduce the risk of the above type of errors and also quicken the build process.