Static graph restore failure when referencing unrestorable project #12322
Labels
Area:RestoreStaticGraph
Issues related to the Static Graph restore
Functionality:Restore
Partner:DotNet
Priority:2
Issues for the current backlog.
Product:dotnet.exe
Triage:NeedsTriageDiscussion
Type:Bug
Milestone
NuGet Product Used
dotnet.exe, MSBuild.exe
Product Version
.NET SDK 7.0.100; VS 17.5 internal preview
Worked before?
Not a regression
Impact
It's more difficult to complete my work
Repro Steps & Context
Given a project that has a
ProjectReference
to a project that doesn't importNuGet.targets
, likeSomething\Something.csproj
referencing the empty projectasdf.proj
in GraphRestoreFailsOnUnrestorableReference.zip, graph-based restore can fail when non-graph-based restore succeeds.Looking at the dgspec, non-graph restore elides the
projectReferences
entry for the reference to the non-restorable project, while graph restore includes it.Since there is in fact no info for that project, this leads to a failure later.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: