Skip to content

Commit

Permalink
Collect dependencies with SosThreadingTools.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Apr 5, 2020
1 parent 1c88a7b commit f8755d1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions azure-pipelines/artifacts/deployables.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ if (Test-Path $PackagesRoot) {

$SosThreadingToolsRoot = "$RepoRoot/bin/SosThreadingTools/$BuildConfiguration/net472"
if (Test-Path $SosThreadingToolsRoot) {
$result[$SosThreadingToolsRoot] = (Get-ChildItem "$SosThreadingToolsRoot/SosThreadingTools.dll" -Recurse)
$ArchivePath = "$RepoRoot\obj\SosThreadingTools\SosThreadingTools.zip"
$ArchiveLayout = "$RepoRoot\obj\SosThreadingTools\ArchiveLayout"
if (Test-Path $ArchiveLayout) { Remove-Item -Force $ArchiveLayout -Recurse }
New-Item -Path $ArchiveLayout -ItemType Directory | Out-Null
Copy-Item -Force -Path "$SosThreadingToolsRoot" -Recurse -Exclude "DllExport.dll","*.pdb","*.xml" -Destination $ArchiveLayout
Rename-Item -Path $ArchiveLayout\net472 $ArchiveLayout\SosThreadingTools
Get-ChildItem -Path $ArchiveLayout\symstore -Recurse | Remove-Item
Compress-Archive -Force -Path $ArchiveLayout\SosThreadingTools -DestinationPath $ArchivePath

$result[(Split-Path $ArchivePath -Parent)] = $ArchivePath
}

$result
$result

0 comments on commit f8755d1

Please sign in to comment.