Skip to content

Does RestoreUseStaticGraphEvaluation require /graph #8326

Answered by jeffkl
stan-sz asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer: No

Long answer:

Traditionally, MSBuild command-line based builds build from the top down. What this means is that the first project being built is started and for each reference, a new build is spawned. Each spawned build waits for the dependencies until they are built. For large builds, this means you could have hundreds of projects waiting. This is done by starting the build of the entry project, gathering the <ProjectReference /> items, pausing that thread, and scheduling a new build of each project reference via the <MSBuild /> task.

Static graph in MSBuild instead evaluates all of the projects ahead of time, then schedules the builds from the bottom up. This means that …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jeffkl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants