988 B
988 B
Workspace Cross-Repo ProjectReference Guard
Purpose
Prevent regression of cross-repo source coupling by failing fast when any .csproj in greenfield/ references a project outside its own repository root.
Script Location
tools/validate-no-cross-repo-projectrefs.sh
Usage
Run from within greenfield/blueprint-platform:
./tools/validate-no-cross-repo-projectrefs.sh
Run from the workspace root:
greenfield/blueprint-platform/tools/validate-no-cross-repo-projectrefs.sh
Behavior
- Exit code
0: no cross-repoProjectReferenceentries found. - Exit code
1: one or more violations were found and listed.
Enforcement Guidance
- Execute this guard before merge to
development. - Keep only intra-repo
ProjectReferenceentries. - Use package references for cross-repo consumption.
Related Governance Docs
docs/architecture/stage40-43-execution-guardrails.mddocs/architecture/stage40-43-execution-guardrails.puml