Created
October 1, 2010 15:06
-
-
Save dahlbyk/606327 to your computer and use it in GitHub Desktop.
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
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