Skip to content

Commit 3afde79

Browse files
authored
Merge pull request #464 from Charles-Gagnon/patch-1
Skip native binary PDB conversion
2 parents 4d1026d + 86545b6 commit 3afde79

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tools/Prepare-Legacy-Symbols.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ Get-ChildItem "$ArtifactStagingFolder\*.pdb" -Recurse |% {
2020
}
2121

2222
if ($BinaryImagePath) {
23+
# Native binaries can't have their PDBs converted to legacy (Windows) format so just skip them
24+
try {
25+
$assembly = [System.Reflection.AssemblyName]::GetAssemblyName($BinaryImagePath)
26+
$isManaged = $true
27+
}
28+
catch {
29+
$isManaged = $false
30+
}
31+
32+
if (-not $isManaged) {
33+
Write-Host "Skipping native binary PDB: $_" -ForegroundColor DarkYellow
34+
return
35+
}
36+
2337
# Convert the PDB to legacy Windows PDBs
2438
Write-Host "Converting PDB for $_" -ForegroundColor DarkGray
2539
$WindowsPdbDir = "$($_.Directory.FullName)\$WindowsPdbSubDirName"

0 commit comments

Comments
 (0)