Rebuilding in VS causes unnecessary restores #13505
Labels
Partner:Project-System
Priority:1
High priority issues that must be resolved in the current sprint.
Product:VS.Client
Style:PackageReference
Tenet:Performance
Performance issues
Type:Bug
Milestone
NuGet Product Used
Visual Studio Package Management UI
Product Version
VS internal preview
Worked before?
Before NuGet/NuGet.Client#5819
Impact
Other
Repro Steps & Context
Firstly, the regression required you use a version of VS with this dotnet/project-system change: dotnet/project-system#9470
Second, it might not have a user observable regression. It's a perf regression only. If it's observable, then the timestamp on the project.assets.json file in the obj folder will change, even if the contents do not.
But the repro steps are to open a solution with SDK style projects, and then "rebuild" (not just "build) the solution. In NuGet.Commands.dll's RestoreCommand.CommitAsync, it will think the assets file has changed, but it should not have.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: