Skip to content

Commit d39afce

Browse files
fix symbols copy
1 parent 949a559 commit d39afce

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pipelines/templates/build-nuget.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
$compressedFile = "$(ob_outputDirectory)/$platform.zip"
6262
Compress-Archive -Path "$(Pipeline.Workspace)/$platform/*" -DestinationPath $compressedFile -Force
6363
$DestPath = Join-Path $symbolsRoot $platform
64+
New-Item -Path $DestPath -ItemType Directory -Force | Out-Null
6465
Get-ChildItem -Path "$(Pipeline.Workspace)/$platform/*.pdb" -Recurse | ForEach-Object {
6566
Copy-Item -Path $_.FullName -Destination $DestPath -Force -Verbose
6667
}
@@ -87,6 +88,17 @@ jobs:
8788
Get-ChildItem -Path "$(ob_outputDirectory)" -Recurse
8889
displayName: 'Build NuPkg'
8990
91+
- pwsh: |
92+
Get-ChildItem -Path "$(ob_outputDirectory)\NugetPackage" -Recurse | ForEach-Object {
93+
$file = $_
94+
Write-Verbose -Message "Found NuGet package: $($file.FullName)" -Verbose
95+
}
96+
97+
Get-ChildItem -Path "$(SymbolsPath)" -Recurse | ForEach-Object {
98+
$file = $_
99+
Write-Host "##vso[artifact.upload artifactname=NuGetPackages;]$($file.FullName)"
100+
}
101+
90102
- task: PublishSymbols@2
91103
inputs:
92104
symbolsFolder: '$(SymbolsPath)'

0 commit comments

Comments
 (0)