We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a352939 commit 86545b6Copy full SHA for 86545b6
1 file changed
tools/Prepare-Legacy-Symbols.ps1
@@ -20,6 +20,20 @@ Get-ChildItem "$ArtifactStagingFolder\*.pdb" -Recurse |% {
20
}
21
22
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
37
# Convert the PDB to legacy Windows PDBs
38
Write-Host "Converting PDB for $_" -ForegroundColor DarkGray
39
$WindowsPdbDir = "$($_.Directory.FullName)\$WindowsPdbSubDirName"
0 commit comments