Skip to content

Conversation

jeffkl
Copy link
Contributor

@jeffkl jeffkl commented Sep 22, 2025

Fixes #11922

Context

This change allows us to specify different outer and inner builds which is useful for pack.

Changes Made

I added a new concept of "inner" targets that are used for inner builds. I kept backwards compatibility with existing logic where by default, inner build targets are just the outer build targets + inner build targets.

If we specify:

<ProjectReferenceTargets Include="Pack" Targets="Build" InnerBuild="true" />
<ProjectReferenceTargets Include="Pack" Targets="Pack" OuterBuild="true" />

Then the correct targets are scheduled:
image

Testing

I added a test and left the existing ones which verify that nothing changed for existing logic. I also tested manually with the provided projects in the linked issue.

Notes

@jeffkl jeffkl self-assigned this Sep 22, 2025
@jeffkl jeffkl added the Area: Static Graph Issues with -graph, -isolate, and the related APIs. label Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Static Graph Issues with -graph, -isolate, and the related APIs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Graph build with traversal projects packs each TargetFramework of multi-targeting projects
1 participant