[CSHARP-2915] Clarify steps to solve the issue regarding error NU3005: "The package signature file entry is invalid" which is possible during cloning the latest solution. Created: 26/Jan/20  Updated: 06/Mar/20  Resolved: 06/Mar/20

Status: Closed
Project: C# Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Dmitry Lukyanov (Inactive) Assignee: Dmitry Lukyanov (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by Dmitry Lukyanov (Inactive) [ 06/Feb/20 ]

After cloning the latest driver version (with supporting .net standard 2.0), users might face with the following error:

Error NU3005 Package 'Microsoft.NETCore.DotNetHostResolver 2.1.0' from source 'C:\Program Files\dotnet\sdk\NuGetFallbackFolder': The package signature file entry is invalid. The central directory header field 'compression method' has an invalid value (8).

Steps to solve:
1. call dotnet restore
2. remove the content of this folder C:\Program Files\dotnet\sdk\NuGetFallbackFolder
3. remove the microsoft.netcore.* nugets in this folder C:\Users\ %USER_NAME%\.nuget\packages
4. remove all nugets in this folder C:\Users\ %USER_NAME%\.nuget\packages

NOTE: The above error can be triggered based on different NuGet configurations on the user's machine. So, it's possible that users will solve this issue right after the first steps, otherwise, they need to keep trying the next steps.

Comment by Vincent Kam (Inactive) [ 27/Jan/20 ]

Some extra info: this issue first surfaced during this PR: https://github.com/DmitryLukyanov/mongo-csharp-driver/pull/101

Per dmitry.lukyanov's investigation, the issue is tracked here: https://github.com/NuGet/Home/issues/7414 

 

Additionally, fwiw, I did not run into this issue when trying to build the branch using VS2019, even after running `git clean -fdx` . I was also able to simply build the solution via `dotnet build`

Generated at Wed Feb 07 21:43:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.