Skip to content

Enable multithreaded execution in NuGet static-graph restore #13701

@rainersigwald

Description

@rainersigwald

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Static GraphIssues with -graph, -isolate, and the related APIs.

    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