[Bug]: Missing "Date modified" causes dotnet-pack to fail
See original GitHub issueHey 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.
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:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
Rebuilt and pushed as 5.0.1.