Skip to content
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

Failed to regenerate a new cache file after deleting cache file and rebuilding solution #13451

Closed
CiciLi1 opened this issue May 20, 2024 · 0 comments · Fixed by NuGet/NuGet.Client#5813
Assignees
Labels
Found:ManualTests Functionality:Restore Priority:1 High priority issues that must be resolved in the current sprint. RegressionDuringThisVersion A regression which broke since last RTM, and was fixed before the next RTM. Type:Bug
Milestone

Comments

@CiciLi1
Copy link

CiciLi1 commented May 20, 2024

NuGet Product Used

Visual Studio Package Management UI

Product Version

NuGet Client Dev\6.11.0.55

Worked before?

It is a regression since it doesn’t repro on Main\34915.142 + NuGet Client Dev\6.11.0.50.

Impact

It's more difficult to complete my work

Repro Steps & Context

Repro Steps:   

  1. Create a C# Console App (.NET Core) project in VS.

  2. Build the solution, observe generate a restore cache file inside obj/ folder.

  3. Delete the cache file manually.

  4. Rebuild the solution, observe if it will regenerate a cache file inside obj/ folder and the timestamp is updated.

Expected:   

A cache file with an updated timestamp is regenerated in the obj/ folder.

Actual:

No cache file is regenerated in the obj/ folder as below:
time

Notes:    

  1. The repro rate is 100%.    

  2. It also reproes on UWP project and non-SDK project that install package with “PackageReference” format

Verbose Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Found:ManualTests Functionality:Restore Priority:1 High priority issues that must be resolved in the current sprint. RegressionDuringThisVersion A regression which broke since last RTM, and was fixed before the next RTM. Type:Bug
Projects
None yet
4 participants