Skip to content

Instantly share code, notes, and snippets.

@dahlbyk
Created October 1, 2010 15:06
Show Gist options
  • Save dahlbyk/606327 to your computer and use it in GitHub Desktop.
Save dahlbyk/606327 to your computer and use it in GitHub Desktop.
filter disableSigning() {
$proj = $_
$xml = [xml](Get-Content $proj.FullName)
$propertyGroup = $xml.Project.PropertyGroup | ? {$_.SignAssembly}
if($propertyGroup.SignAssembly -eq 'true') {
echo "Disabling Signing: $proj"
$propertyGroup.SignAssembly = 'false'
$xml.save($proj.FullName)
Push-Location $proj.DirectoryName
& git add $proj.FullName
& git commit -m "disabled assembly signing"
Pop-Location
}
}
gci $pwd.path |
where { Test-Path "$path\.git" } |
foreach { gci $_ *.csproj -Recurse } |
disableSigning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment