forked from dotnet/roslyn-analyzers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use tools.ps1 helpers to get procdump
- Loading branch information
Showing
3 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<# | ||
.SYNOPSIS | ||
Downloads 32-bit and 64-bit procdump executables and returns the path to where they were installed. | ||
eng\scripts\Get-ProcDump.ps1 | ||
#> | ||
. $PSScriptRoot/../common/tools.ps1 | ||
$procDumpDir = Join-Path $ToolsDir "procdump" | ||
$procDumpToolPath = Join-Path $procDumpDir "procdump.exe" | ||
if (-not (Test-Path $procDumpToolPath)) { | ||
Invoke-WebRequest -Uri https://download.sysinternals.com/files/Procdump.zip -UseBasicParsing -OutFile $TempDir\Procdump.zip | Out-Null | ||
Expand-Archive -Path $TempDir\Procdump.zip $procDumpDir | ||
} | ||
(Resolve-Path $procDumpDir).Path |