Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19e6696

Browse files
committed
Add custom build of NuGet 3.4.3 with mono timezone workaround.
When the local timezone is a positive offset from UTC then certain NuGet packages will fail to extract on Mono with the error: System.ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000. Parameter name: offset at System.DateTimeOffset.ValidateDate (DateTime dateTime, TimeSpan offset) at System.DateTimeOffset..ctor (DateTime dateTime) at System.DateTimeOffset.op_Implicit (DateTime dateTime) at System.IO.Compression.ZipArchiveEntry.get_LastWriteTime () at NuGet.Packaging.PackageArchiveReader.CopyFiles (System.String destination, IEnumerable`1 packageFiles, NuGet.Packaging.Core.ExtractPackageFileDelegate extractFile, CancellationToken token) at NuGet.Packaging.PackageExtractor.ExtractPackage (NuGet.Packaging.PackageReaderBase packageReader, System.IO.Stream packageStream, NuGet.Packaging.PackagePathResolver packagePathResolver, NuGet.Packaging.PackageExtractionContext packageExtractionContext, CancellationToken token) This only happens for certain NuGet packages, such as XamarinComponent 1.1.0.32. As a workaround the ArgumentOutOfRangeException is now handled when reading the LastWriteTime for the zip entry instead of just when trying to write the file's last write time. Custom source code is available from: https://github.com/mrward/NuGet.Client/tree/release-3.4.3-monodevelop
1 parent c400e3c commit 19e6696

26 files changed

+0
-0
lines changed

NuGet.Client.dll

0 Bytes
Binary file not shown.

NuGet.Commands.dll

0 Bytes
Binary file not shown.

NuGet.Common.dll

0 Bytes
Binary file not shown.

NuGet.Configuration.dll

0 Bytes
Binary file not shown.

NuGet.ContentModel.dll

0 Bytes
Binary file not shown.

NuGet.Credentials.dll

0 Bytes
Binary file not shown.

NuGet.DependencyResolver.Core.dll

0 Bytes
Binary file not shown.

NuGet.DependencyResolver.dll

0 Bytes
Binary file not shown.

NuGet.Frameworks.dll

0 Bytes
Binary file not shown.

NuGet.Indexing.dll

0 Bytes
Binary file not shown.

NuGet.LibraryModel.dll

0 Bytes
Binary file not shown.

NuGet.Logging.dll

0 Bytes
Binary file not shown.

NuGet.PackageManagement.dll

0 Bytes
Binary file not shown.

NuGet.Packaging.Core.Types.dll

0 Bytes
Binary file not shown.

NuGet.Packaging.Core.dll

0 Bytes
Binary file not shown.

NuGet.Packaging.dll

0 Bytes
Binary file not shown.

NuGet.ProjectManagement.dll

0 Bytes
Binary file not shown.

NuGet.ProjectModel.dll

0 Bytes
Binary file not shown.

NuGet.Protocol.Core.Types.dll

0 Bytes
Binary file not shown.

NuGet.Protocol.Core.v2.dll

0 Bytes
Binary file not shown.

NuGet.Protocol.Core.v3.dll

0 Bytes
Binary file not shown.

NuGet.Protocol.VisualStudio.dll

0 Bytes
Binary file not shown.

NuGet.Repositories.dll

0 Bytes
Binary file not shown.

NuGet.Resolver.dll

0 Bytes
Binary file not shown.

NuGet.RuntimeModel.dll

0 Bytes
Binary file not shown.

NuGet.Versioning.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)