dotnet / dotnet/msbuild

Enable multithreaded execution in NuGet static-graph restore

Open
#13,701 1 comment 0 reactions 1 assignee Claimed by @JanProvaznik View on GitHub
Area: Static Graph
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

In static graph restore, `NuGet.Build.Tasks.Console.exe` builds an MSBuild static graph (in parallel) and then executes targets on each project to determine ProjectReferences, PackageReferences, and so on that NuGet cares about for each project:

https://github.com/NuGet/NuGet.Client/blob/b83566ec2369c4e9fd07e6f95d734dfe370a1e66/src/NuGet.Core/NuGet.Build.Tasks.Console/MSBuildStaticGraphRestore.cs#L929-L947

Right now that target execution doesn't opt into multithreaded MSBuild, but enabling that should a) not use very many tasks (so easily enlightened) and b) benefit a lot from parallelism. We should enable multithreaded there.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.