diff --git a/Build/build.ps1 b/Build/build.ps1 index 5e4bb40b..8b22fd65 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -291,10 +291,12 @@ function Edit-XmlNodes { foreach ($node in $nodes) { if ($node -ne $null) { - if ($node.NodeType -eq "Element") { + if ($node.NodeType -eq "Element") + { $node.InnerXml = $value } - else { + else + { $node.Value = $value } } diff --git a/Build/runbuild.ps1 b/Build/runbuild.ps1 index 0a3910ee..0c20b341 100644 --- a/Build/runbuild.ps1 +++ b/Build/runbuild.ps1 @@ -1,4 +1,7 @@ -cls +param( + [hashtable] $parameters = @{}, + [hashtable] $properties = @{} +) $path = Split-Path -Path $MyInvocation.MyCommand.Path @@ -8,7 +11,7 @@ Import-Module ($path + '\..\Tools\PSake\psake.psm1') Try { write-host "Starting build.ps1" - Invoke-psake ($path + '\build.ps1') Test -framework 3.5 + Invoke-psake ($path + '\build.ps1') -properties $properties -parameters $parameters if ($psake.build_success -eq $false) {