Skip to content

[Draft]: Introduce mode for project graph construction to load entire graph #13717

Draft
jeffkl wants to merge 1 commit intodotnet:mainfrom
jeffkl:project-graph-mode
Draft

[Draft]: Introduce mode for project graph construction to load entire graph #13717
jeffkl wants to merge 1 commit intodotnet:mainfrom
jeffkl:project-graph-mode

Conversation

@jeffkl
Copy link
Copy Markdown
Contributor

@jeffkl jeffkl commented May 8, 2026

Fixes #

Context

Changes Made

Introduced a new ProjectGraphOptions struct because project graph construction happens in a constructor and adding a new overload seemed like a worse design. This way we can add new options to the struct and not keep having to modify the constructor.

var projectGraph = new ProjectGraph(
    new ProjectGraphOptions
    {
        EntryPoints = [new ProjectGraphEntryPoint("path")],
        Mode = ProjectGraphMode.Full
    });

In the new mode, SetTargetFramework is ignored during graph construction and all outer and inner builds are evaluated. If the "full" graph was used for a build, it would technically over build, but this graph will be used by NuGet in for restore.

Testing

Notes

@jeffkl jeffkl self-assigned this May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant