Repository navigation
Add build review guidance for architecture and design-time builds - #68279
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 3e38d320-317f-480e-81fa-e98a8374d9de
3 of 4 tasks
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 3e38d320-317f-480e-81fa-e98a8374d9de
PureWeen
marked this pull request as ready for review
August 21, 2026 19:32
Contributor
There was a problem hiding this comment.
Pull request overview
Adds build-infrastructure review guidance for architecture and design-time evaluation paths without changing build behavior.
Changes:
- Adds scoped MSBuild review and validation guidance.
- Documents conditional
RepoTasksregistration during design-time builds.
Show a summary per file
| File | Summary |
|---|---|
Directory.Build.props |
Documents design-time RepoTasks import behavior. |
.github/instructions/build.instructions.md |
Adds build-infrastructure review guidance. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
wtgodbe
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A focused review of #68254 found two build-system paths that were easy to miss even after extensive validation:
eng/build.shdetects and passes the host architecture, while baredotnetand IDE evaluation can leaveTargetArchitectureunset and reach thex64fallback ineng/Common.props.Directory.Build.propsdoes not register RepoTasks during design-time builds. A target that invokes one of those tasks must skip the invocation whenever that registration is unavailable.The first review missed both because every reviewer looked at roughly the same entry point and evaluation mode. These are repository-wide review hazards, not details specific to one SFX fix.
What this changes
This adds path-scoped guidance for changes under
eng/**,Directory.Build.*, and repository.propsand.targetsfiles. It asks reviewers and coding agents to:DesignTimeBuild;A comment beside the conditional RepoTasks import also keeps the design-time registration invariant next to the code that enforces it.
Why merge this
The build behavior is unchanged. This PR makes existing repository behavior discoverable at the point where build-infrastructure changes are reviewed, so a focused validation pass is less likely to miss a different entry point or evaluation mode.
This is defense in depth, not a claim that instructions guarantee perfect reviews. Behavioral evaluation improved defective-patch blocking and evidence diversity, but exact mechanism recovery was not reliable enough to claim full coverage. The current Vally infrastructure also does not model production
.github/instructionsapplyToloading, so a checked-in behavior eval is intentionally left for follow-up infrastructure work.This PR also does not change the current
TargetArchitecturefallback. That needs separate compatibility research rather than being mixed into a guidance-only change.Validation
applyTopatterns.Directory.Build.propswithxmllint.git diff --check.main.Checklist