Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from Dec 18, 2023

Conversation

dfederm
Copy link
Contributor

@dfederm dfederm commented Dec 6, 2023

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
Copy link
Contributor

@rokonec rokonec left a comment

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.

src/Build.UnitTests/Graph/ProjectGraph_Tests.cs Outdated Show resolved Hide resolved
Co-authored-by: Roman Konecny <rokonecn@microsoft.com>
@rokonec rokonec assigned dfederm and unassigned rokonec Dec 11, 2023
@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
8 checks passed
@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