Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
'dotnet restore' enumerates local package sources for MSBuild project sdk packages already in the packages cache #7594
Details about Problem
dotnet.exe --version: 2.2.100
Suppose I have a .csproj that lists a nuget-based MSBuild sdk and that I've already run 'dotnet restore.' The sdk package will be installed to my packages cache. Theoretically, if I re-run restore, it will realize the package is already cached and not bother looking on my package sources.
However, the second restore will indeed look on my package sources. This is a needless performance hit, magnified if I'm using slow-to-respond source (e.g. a network share)
Detailed repro steps so we can see the same problem