Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions eng/pipelines/common/global-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ jobs:
- name: _nativeSanitizersArg
value: ''

# Capture MSBuild crash diagnostics so they are published with build logs
- name: MSBUILDDEBUGPATH
value: $(Build.SourcesDirectory)/artifacts/log/${{ parameters.buildConfig }}/MsbuildDebugLogs
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parameters.buildConfig is typically passed as lowercase (e.g., release), while the build/publish infrastructure uses the cased $(_BuildConfig) (e.g., Release) for artifacts/log/$(_BuildConfig). On macOS/Linux this would send MSBuild crash diagnostics to artifacts/log/release/..., which won’t be swept by the existing log-gathering step (and may create a parallel directory). Consider basing this path on $(_BuildConfig)/$(buildConfigUpper) instead, and ensure the target directory exists before the build so MSBuild can write the failure files.

Suggested change
value: $(Build.SourcesDirectory)/artifacts/log/${{ parameters.buildConfig }}/MsbuildDebugLogs
value: $(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/MsbuildDebugLogs

Copilot uses AI. Check for mistakes.

- ${{ each variableTemplate in parameters.extraVariablesTemplates }}:
- template: ${{ variableTemplate.template }}
parameters:
Expand Down
Loading