forked from dotnet/msbuild
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shared EvaluationContext for graph construction
Fix dotnet#9678 by creating a single shared `EvaluationContext` in the `Graph` object and using it when creating `ProjectInstance`s using the default factory. This is similar to how NuGet static-graph restore already works: https://github.com/NuGet/NuGet.Client/blob/b83566ec2369c4e9fd07e6f95d734dfe370a1e66/src/NuGet.Core/NuGet.Build.Tasks.Console/MSBuildStaticGraphRestore.cs#L885 Since we're evaluating the projects in the graph in parallel and "all at once", the shared caches in the `EvaluationContext` should be a solid improvement.
- Loading branch information
1 parent
6d97976
commit f74240f
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters