Corrupted NuGet package

Hi,

I'm building a .net solution that produce ~30 nuget packages. Sometime everything works fine, but unfortunately, from time to time some of packages are corrupted (every time different package(s)).

I discovered this first run into Octopus deploy error:
     Unable to download package:  File contains corrupted data. System.IO.FileFormatException: File contains corrupted data.

Then I tried to download the same broken package directly from TC artifacts list and got zip archive error:

1) WindowsExplorer:

[Window Title]
Compressed (zipped) Folders Error

[Content]
Windows cannot open the folder.

The Compressed (zipped) Folder 'C:\Users\Anton.Zhilin\AppData\Local\Temp\RiksTV.Csl.Emailing.Outbound.Service.1.0.322.nupkg.zip' is invalid.

[OK]

2) WinRar: !  
     C:\Users\me\AppData\Local\Temp\MC.Service.1.0.322.nupkg.zip: Unexpected end of archive

7Zip opens it fine, but anyway, the package should finally work fine with Octopus.


I'm using TC Enterprise 8.1.5 (build 30240).

How to deal with this?

Thanks in advance,
Anton
1 comment
Comment actions Permalink

Hi Anton,

How do you create NuGet packages? Do you use TeamCity build-in NuGet Pack build step? If yes, then which NuGet version do you use? Are there any warnings/errors in the build log?

0

Please sign in to leave a comment.