Varying package sizes

Topics: General
May 8, 2013 at 7:52 PM
I have two TeamCity build machines, one Windows 8, one Windows 2008 Server R2. They are both using NuGet 2.5, but they produce nupkgs of different sizes.

One is 28Mb and the other is 39Mb! Does anybody have any ideas about what would cause this difference? I've checked that the contents of both packages are identical, and they are.


May 8, 2013 at 8:00 PM
Does Server 2008 machine have .Net 4.5 installed on it? NuGet uses the System.IO.Packaging APIs to create the nupkg - it's likely that they modified the implementation of the API between 4.0 and 4.5 that produces a better compressed file. I'm assuming Win 8 is producing the 28 Mb file
May 8, 2013 at 8:33 PM
Thank you for such a quick and accurate response!

You are absolutely right, the Windows 8 machine was creating the smaller package and installing .NET 4.5 on the Windows 2008 Server enabled it to generate smaller packages.

All the best,