NuGetPackageExplorer: Crash on opening push dialog/save: The DateTimeOffset specified cannot be converted into a Zip file timestamp.'

Type (choose one):

  • Bug

NPE version: (e.g. 3.12) 3.25

Installed from: source - 6fb8f2638206af4e2a98ffcc71f450ef3636d1b3

In case of a BUG:

  • What is the current result? exception
  • What is the expected result? showing popup for push
  • Please post full exception details in case of an Exception (message, stacktrace, inner exceptions)
System.ArgumentOutOfRangeException
  HResult=0x80131502
  Message=The DateTimeOffset specified cannot be converted into a Zip file timestamp.
Parameter name: value
  Source=System.IO.Compression
  StackTrace:
   at System.IO.Compression.ZipArchiveEntry.set_LastWriteTime(DateTimeOffset value)
   at NuGet.Packaging.PackageBuilder.CreatePart(ZipArchive package, String path, Stream sourceStream, DateTimeOffset lastWriteTime)
   at NuGet.Packaging.PackageBuilder.WriteFiles(ZipArchive package, HashSet`1 filesWithoutExtensions)
   at NuGet.Packaging.PackageBuilder.Save(Stream stream)
   at PackageExplorerViewModel.PackageHelper.SavePackage(IPackageMetadata packageMetadata, IEnumerable`1 files, String targetFilePath, Boolean useTempFile) in X:\_github\NuGetPackageExplorer\PackageViewModel\Utilities\PackageHelper.cs:line 34

  • Are there any work arrounds? no
  • Is there a version in which it did worked? not checked
  • Is there a package on Nuget.org which shows the bug? Nlog 4.4.12

steps: image

image

extra info:

  • current culture: nl-NL
  • current ui culture: en-US

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Yes, that fixed it for me. thanks