Restore packages in 9.0.200 takes a very long time #14147
Labels
Area:NewDependencyResolver
Issues related to the new dependency graph resolver
Functionality:Restore
Priority:1
High priority issues that must be resolved in the current sprint.
Type:Bug
NuGet Product Used
dotnet.exe
Product Version
9.0.200
Worked before?
9.0.103
Impact
Other
Repro Steps & Context
I'm having issues with the new package restore logic, which is seemingly taking forever (aborted after 3 minutes).
I'm restoring packages using
dotnet restore -f -v d <sln>
but don't see anything useful in the console before the command is cancelled. It lists increasingly long restore times, with some projects completing in ms and others going on for minutes.We're using centralized package version management and all versions are explicit (no wildcards). There's ballpark 150 projects in the solution.
Adding
<RestoreUseLegacyDependencyResolver>true</RestoreUseLegacyDependencyResolver>
toDirectory.Build.props
is a workaround. For reference, the old way of restoring packages completes in ~4s.Verbose Logs
The text was updated successfully, but these errors were encountered: