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
14 changes: 14 additions & 0 deletions tools/Prepare-Legacy-Symbols.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ Get-ChildItem "$ArtifactStagingFolder\*.pdb" -Recurse |% {
}

if ($BinaryImagePath) {
# Native binaries can't have their PDBs converted to legacy (Windows) format so just skip them
try {
$assembly = [System.Reflection.AssemblyName]::GetAssemblyName($BinaryImagePath)
$isManaged = $true
}
catch {
$isManaged = $false
}

if (-not $isManaged) {
Write-Host "Skipping native binary PDB: $_" -ForegroundColor DarkYellow
return
}

# Convert the PDB to legacy Windows PDBs
Write-Host "Converting PDB for $_" -ForegroundColor DarkGray
$WindowsPdbDir = "$($_.Directory.FullName)\$WindowsPdbSubDirName"
Expand Down