Skip to content

Fix sln-based graph builds with non-built projects with solution dependencies - #9503

Merged
rainersigwald merged 3 commits into
dotnet:vs17.9from
dfederm:fix-sln-graph-nobuild-with-deps
Dec 18, 2023
Merged

rainersigwald merged 3 commits into
dotnet:vs17.9from
dfederm:fix-sln-graph-nobuild-with-deps

Conversation

@dfederm

@dfederm dfederm commented Dec 6, 2023

Copy link
Copy Markdown
Contributor

Fixes #9500

Previously the code was considering all projects when building up the solution dependencies and later that was blowing up due to including projects which weren't built. This moves the logic to the same loop that already filters projects which don't build so should be (trivially) more efficient anyway.

@rokonec rokonec self-assigned this Dec 11, 2023

@rokonec rokonec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Although it is not actual bug, please consider to fix the copy/paste issue in test.

Comment thread src/Build.UnitTests/Graph/ProjectGraph_Tests.cs Outdated
Co-authored-by: Roman Konecny <rokonecn@microsoft.com>
@rokonec rokonec assigned dfederm and unassigned rokonec Dec 11, 2023
Comment thread src/Build/Graph/GraphBuilder.cs
@rainersigwald
rainersigwald changed the base branch from main to vs17.9 December 18, 2023 16:50
@rainersigwald
rainersigwald enabled auto-merge (squash) December 18, 2023 17:04
@rainersigwald
rainersigwald merged commit f7bec32 into dotnet:vs17.9 Dec 18, 2023
@dfederm
dfederm deleted the fix-sln-graph-nobuild-with-deps branch December 18, 2023 20:17
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.

[Bug]: Sln-based graph builds with non-built projects with solution dependencies throws

4 participants