SHARE
TWEET

Untitled

a guest Feb 26th, 2012 43 Never
  1. resolve-path *.pdb | % {
  2.     $pdb = $_
  3.     $fileName = split-path $pdb -leaf
  4.     $assembly = [io.path]::GetFileNameWithoutExtension($fileName)
  5.     $gac = "$env:windir\assembly\GAC_MSIL\$assembly"
  6.     if (test-path $gac) {
  7.         resolve-path "$gac\*" | % {
  8.             copy $pdb -destination $_ -force
  9.         }
  10.     }
  11. }
RAW Paste Data
Top