Created
October 21, 2010 16:56
-
-
Save shishkin/638859 to your computer and use it in GitHub Desktop.
PowerShell: Copies *.pdb files from current folder to GAC. Multiple assembly versions are not supported.
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
resolve-path *.pdb | % { | |
$pdb = $_ | |
$fileName = split-path $pdb -leaf | |
$assembly = [io.path]::GetFileNameWithoutExtension($fileName) | |
$gac = "$env:windir\assembly\GAC_MSIL\$assembly" | |
if (test-path $gac) { | |
resolve-path "$gac\*" | % { | |
copy $pdb -destination $_ -force | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment