Skip to content

NuGet Static graph restore invoked on a slnf file restores excluded projects #13097

@ViktorHofer

Description

@ViktorHofer

NuGet Product Used

dotnet.exe

Product Version

8.0.100

Worked before?

no

Impact

I'm unable to use this version

Repro Steps & Context

Repro:
dotnet restore ttt.slnf -> only the projects listed in the slnf file are restored
dotnet restore ttt.slnf /p:RestoreUseStaticGraphEvaluation=true -> all projects listed in the sln file are restored

restorediff.zip

This impacts changes like dotnet/msbuild#9555 as when building from source, we must not restore more projects than necessary to not bring in prebuilts.

cc @jeffkl

Verbose Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions