Skip to content

Poor project evaluation performance for project at least under src/libraries #105139

Open
@ViktorHofer

Description

@ViktorHofer

This is from a fully no-op build of a reference source project that doesn't have any dependencies:

C:\git\runtime4>.\.dotnet\dotnet.exe msbuild /t:Build /v:minimal /clp:performancesummary C:\git\runtime4\src\libraries\System.Runtime\ref\System.Runtime.csproj

  System.Runtime -> C:\git\runtime4\artifacts\bin\System.Runtime\ref\Debug\net9.0\System.Runtime.dll

Project Evaluation Performance Summary:
      557 ms  C:\git\runtime4\src\libraries\System.Runtime\ref\System.Runtime.csproj   1 calls

We should ETW trace this by following the guidance here: https://github.com/dotnet/msbuild/blob/main/documentation/specs/event-source.md

This impacts everything:

  • Tooling performance (VS, VSCode, everything that uses the project system and msbuild underneath)
  • CLI performance: Restore, Build, Pack, ...

cc @dotnet/area-infrastructure-libraries

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions