Add ProjectReference for crossgen2 in tests project#128414
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the ReadyToRun test project to depend on the in-build crossgen2 project so that crossgen2 changes are picked up when building/running the tests.
Changes:
- Add a
ProjectReferencefromILCompiler.ReadyToRun.Teststocrossgen2_inbuild.csproj(withReferenceOutputAssembly="false").
| <ProjectReference Include="../ILCompiler.Reflection.ReadyToRun/ILCompiler.Reflection.ReadyToRun.csproj" /> | ||
| <ProjectReference Include="../crossgen2/crossgen2_inbuild.csproj" ReferenceOutputAssembly="false" /> | ||
| </ItemGroup> |
|
Note This review was generated by Copilot. 🤖 Copilot Code Review — PR #128414Holistic AssessmentMotivation: The PR ensures the crossgen2 tool is freshly built before the ReadyToRun tests execute, so tests always pick up the latest crossgen2 changes. This is a legitimate build-ordering concern — without this, stale crossgen2 binaries could cause confusing test failures. Approach: Using Summary: ✅ LGTM. A single-line, well-scoped change that uses the correct MSBuild pattern to establish a build dependency. The referenced project ( Detailed Findings✅ Build Dependency Pattern — Correct usageThe ✅ File existence verified
|
To make sure the latest changes for crossgen2 are picked up when building and running the test project locally.