question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Missing "Date modified" causes dotnet-pack to fail

See original GitHub issue

Hey guys,

I update some dependencies in one of the projects at work and wanted to create a new version of that project which uses Autofac.Extensions.DependencyInjection.

When I tried running dotnet pack I received that weird error:

error : The DateTimeOffset specified cannot be converted into a Zip file timestamp

I googled a litttle bit and found out that this might be related to some assembly missing the modified date and indeed, the latest version does miss this date.

image

Downgrading again to version 4.4.0 fixed that issue for me.

Anyone knows how this happened and how it can be fixed? We might want to create a new release with a fix and update dependent Autofac-Libs like Autofac.AspNetCore.Multitenant.

Best regards, Sami

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alsamicommented, Oct 4, 2019

IIRC, modified dates are part of the filesystem metadata, and not stored in the file itself. Worth looking into from that angle, anyway.

It looks like the bug was caused by nuget itself and should be fixed now. More information can also be found here.

Since I cannot, would someone be so kind to create a new version to address the issue?

0reactions
tilligcommented, Oct 7, 2019

Rebuilt and pushed as 5.0.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet pack creates odd dates in package using version ...
Once we unpack the package, the date changes to 12/29/1979. ... [Bug]: Missing "Date modified" causes dotnet-pack to fail autofac/Autofac.
Read more >
dotnet pack recently failing
In our case, the error was due to multiple dependent nuget packages that all contained a .targets file with an element as this...
Read more >
Troubleshooting NuGet Package Restore in Visual Studio
Use NuGet Package Restore to download them. The missing file is {name}. This error occurs when you attempt to build a project that...
Read more >
windows 10 v1809 - Missing timestamp from Explorer NTFS
Right-click on an Explorer header and display all date columns: "Date created", "date" and "Date modified". Do they show other dates than the ......
Read more >
AzurePipeline failing due to: The reference assemblies for . ...
Now this issues is fixed we are now posed with the error complaining it cannot find .NET Framework 4.6.1. Anyways any idea whats...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found