Nuget packages build in teamcity are bigger than expected

Hi all,

I currently have a teamcity task that uses nuget pack to create a nuget package as the final step, and the package size is about 50MB. If I download this package to my local dev enviroment, unzip the file then repack the file using nuget from the command line, the package size is about 40MB. Is there a setting in teamcity somewhere that changes how much compression occurs when the nuget package is being created? The teamcity settings are shown in the screenshot below and when creating the package form the command line I used "nuget pack 'C:\........\....nuspec'. Does anyone have any ideas about why these packages have a 20% size difference?
TCnuget.PNG

Please sign in to leave a comment.