Skip to content

Commit cb5edd3

Browse files
docs: document Directory.Build.props/targets hierarchy in agent instruction files (#4984)
* Initial plan * docs: add Directory.Build.props/targets hierarchy guidance to agent instruction files Co-Authored-By: GitHub Copilot <copilot@github.com> Co-authored-by: jamescrosswell <728212+jamescrosswell@users.noreply.github.com> * Made the instructions more concise Clarify MSBuild hierarchical structure and overrides. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jamescrosswell <728212+jamescrosswell@users.noreply.github.com> Co-authored-by: James Crosswell <jamescrosswell@users.noreply.github.com>
1 parent 6cda3b5 commit cb5edd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

AGENTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ Uses the .NET SDK (`dotnet` CLI). Key files:
77
- `global.json` — pins .NET SDK and Workload versions
88
- `Directory.Build.props` / `Directory.Build.targets` — shared MSBuild properties across all projects
99

10+
### MSBuild hierarchical structure
11+
12+
MSBuild searches upward from each project file and uses the **nearest** `Directory.Build.props`/`.targets` it finds. Parent files are not automatically included. props/targets files in this repo explicitly `<Import>` parent/root files when appropriate.
13+
14+
`integration-test/Directory.Build.props` / `integration-test/Directory.Build.targets` are intentionally isolated (do not import root).
15+
1016
## Solution Filters
1117

1218
Use solution filters instead of the full `Sentry.slnx`:

0 commit comments

Comments
 (0)