Closed KirillOsenkov closed 1 month ago
Caught it under debugger by opening the binlog from the design-time build, right-click the CollectDeclaredReferencesTask -> Debug, then use a certain Smart Attach feature to attach to the MSBuild process, then debug ;)
packageFolders contains a single item C:\Users\kirillo\.nuget\packages\
, nugetLibraryRelativePath
== azure.core/1.38.0
, azure.core in my cache contain 1.35 and 1.39, but no 1.38.
Should perhaps be resilient to this situation.
I'll leave my repo in this state (won't restore) in case we want to debug this a bit more.
I'm not sure I understand this state exactly. Doesn't this imply that the project.assets.json
file specifies a package (azure.core/1.38.0
in your case), but the package doesn't exist on disk? So the restore didn't actually place the package?
Did you perhaps purge your cache sometime after restoring, and then didn't restore again?
yes it's possible! I clear the package cache every once in a while.
Saw this when opening Gardener.sln without having it restored