Skip to content

Commit

Permalink
[pdbs.pdbresym.vm] Download .NET PDBs
Browse files Browse the repository at this point in the history
Download .NET PDBs to `C:\symbols` using PDBReSym to iterate through
`C:\Windows\Microsoft.NET`.
  • Loading branch information
Ana06 committed Jul 10, 2024
1 parent fc61f35 commit f939aff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/pdbs.pdbresym.vm/pdbs.pdbresym.vm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>pdbs.pdbresym.vm</id>
<version>0.0.0.20240417</version>
<version>0.0.0.20240710</version>
<authors>Stephen Eckels</authors>
<description>Download PDBs</description>
<dependencies>
Expand Down
6 changes: 5 additions & 1 deletion packages/pdbs.pdbresym.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ $ErrorActionPreference = 'Stop'
Import-Module vm.common -Force -DisableNameChecking

try {
# Iterate through C:\Windows\System32 downloading all PDBs concurrently
$executablePath = Join-Path ${Env:RAW_TOOLS_DIR} PDBReSym\PDBReSym.exe -Resolve

VM-Write-Log "INFO" "Iterating through C:\Windows\System32 downloading PDBs to C:\symbols"
& $executablePath cachesyms

VM-Write-Log "INFO" "Iterating through C:\Windows\Microsoft.NET downloading .NET PDBs to C:\symbols"
& $executablePath cachesyms --sysdir "C:\Windows\Microsoft.NET"

# The downloaded symbols are store into C:\symbols
VM-Assert-Path "C:\symbols"

Expand Down

0 comments on commit f939aff

Please sign in to comment.