-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The DateTimeOffset specified cannot be converted into a Zip file timestamp. #4477
Comments
It's a Nuget/VS bug, and I assume we'll have to re-publish the packages to fix it. |
It should be fixed in Nuget 5.3 NuGet/Home#8599 Can you share some repro steps? |
Ok, let's close the issue than. |
I just followed exactly what was shown here: https://youtu.be/yrQaKv2mxFU (starting on 4:40). |
I got the same error, here are the repro steps (cc @sebastienros ):
I got the same error when I check Generate NuGet package on build in VS |
@neman please file a new instead of replying to a closed issue |
There @hishamco, I fixed it ;) |
I will try to repro locally as you provided the steps. |
I also tried
Template does not build at all. After I commented some code to make it buildable, pack command did work. It might be fixed on dev branch |
@sebastienros Will there be re-publishing of packages or an intermediate release? |
Apparently if you upgrade to the latest sdk (3.0.100) then it should fix the issue. A workaround is to disable deterministic packages like this: |
Republishing would only be part of the solution, we need to find all the packages that we reference and are also "poisoned". Could someone try to find these packages? It should be doable by doing a publish folder, and look at any assembly and if their metadata for a timestamp that is MinValue. |
I made a console app to fix invalid dates in a drive. Usage: Run this tool and forget about this issue :) |
@ebicoglu awesome, thanks |
With PowerShell: dotnet publish Cheers! |
My solution: Run the below Powershell script.
|
Problem: When you install Microsoft.EntityFrameworkCore.Sqlite 3.1.0 you can see dlls without modify date. It cause to "The DateTimeOffset specified cannot be converted into a Zip file timestamp" when you try to pack my program. Solution: Update lib version related problem NuGetPackageExplorer/NuGetPackageExplorer#269 OrchardCMS/OrchardCore#4477 NuGet/Home#7001
Having an error with the released .net core 3.0. Right click on project and on Pack:
If the PackageReference for OrchardCore.Module.Targets is removed, the error is gone. The error was seen here before: NuGet/Home#7001
The text was updated successfully, but these errors were encountered: