Skip to content

Embed the solution file in binlog for graph build of a solution#14162

Open
GangWang01 wants to merge 3 commits into
dotnet:mainfrom
GangWang01:embed-sln
Open

Embed the solution file in binlog for graph build of a solution#14162
GangWang01 wants to merge 3 commits into
dotnet:mainfrom
GangWang01:embed-sln

Conversation

@GangWang01

Copy link
Copy Markdown
Member

Fixes #8170

Context

Graph build of a solution does not embed .sln file in binlog

Changes Made

In the scheduler of executing graph build, add ProjectStartedEventArgs with the solution file.

Testing

Notes

Copilot AI review requested due to automatic review settings June 25, 2026 10:16
@GangWang01 GangWang01 marked this pull request as draft June 25, 2026 10:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds explicit logging for solution files during solution-based graph builds so the .sln can be captured by binlog import embedding (fixing #8170).

Changes:

  • Logs a synthetic ProjectStartedEventArgs/ProjectFinishedEventArgs pair for the solution (projectGraph.Solution) during graph build scheduling.
  • Wraps the graph build execution/reporting logic in a try/finally to ensure the solution “finish” event is emitted even on failure.
  • Tracks overall graph build success to report the solution “succeeded” status.

Comment thread src/Build/BackEnd/BuildManager/BuildManager.cs Outdated
Comment thread src/Build/BackEnd/BuildManager/BuildManager.cs Outdated
Comment thread src/Build/BackEnd/BuildManager/BuildManager.cs
@GangWang01 GangWang01 marked this pull request as ready for review June 26, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Graph build of a solution does not embed .sln file in binlog

2 participants