Repository navigation
[dotnet] Use the existing '$(_BundlerDebug)' property instead of the '$(Configuration)' property to determine whether R2R assemblies are filtered or not. - #26587
Conversation
…'$(Configuration)' property to determine whether R2R assemblies are filtered or not. We're trying to move away from build behavior depending on the '$(Configuration)' property (dotnet/sdk#31918), so use the existing '$(_BundlerDebug)' property (which we use in a number of other places to determine whether we're building a debug build or a release build) instead of '$(Configuration)'.
There was a problem hiding this comment.
🟢 Approval recommended
The change is small and consistent with existing SDK patterns for debug/release behavior, and the only feedback is a minor comment-accuracy improvement.
Pull request overview
Updates the .NET Apple SDK’s ReadyToRun (R2R) MSBuild logic to avoid relying on $(Configuration) for deciding when to exclude user assemblies from composite R2R compilation, switching to the existing internal $(_BundlerDebug) signal that the SDK uses elsewhere to represent “debuggability”.
Changes:
- Switch default
FilterReadyToRunAssembliesgating from$(Configuration) != Releaseto$(_BundlerDebug) == 'true'. - Add an explanatory comment describing why user assemblies are filtered in debug-oriented builds.
File summaries
| File | Description |
|---|---|
| dotnet/targets/Microsoft.Sdk.R2R.targets | Uses $(_BundlerDebug) (instead of $(Configuration)) to default-enable R2R user-assembly filtering in debug-oriented builds. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
🚀 [CI Build #dc54335] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 264 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
We're trying to move away from build behavior depending on the '$(Configuration)' property (dotnet/sdk#31918), so use the existing '$(_BundlerDebug)' property (which we use in a number of other places to determine whether we're building a debug build or a release build) instead of '$(Configuration)'.