@@ -45,15 +45,15 @@ properties {
4545task Default - depends Pack
4646
4747task Clean - depends SetVersion {
48- msbuild " $slnFile " / t:Clean / p:Configuration= $configuration
48+ exec { msbuild " $slnFile " / t:Clean / p:Configuration= $configuration }
4949}
5050
5151task Compile - depends Clean {
52- msbuild " $slnFile " / p:Configuration= $configuration
52+ exec { msbuild " $slnFile " / p:Configuration= $configuration }
5353}
5454
5555task Test - depends Compile {
56- .$xunitRunner " $testDll "
56+ exec { .$xunitRunner " $testDll " }
5757}
5858
5959task Pack - depends Test {
@@ -67,21 +67,21 @@ task Pack -depends Test {
6767 $versionSwitch = " -Version $completeVersionNumber "
6868 }
6969
70- invoke-expression " & '$nugetExe ' pack '$csprojFile ' -Symbols -Properties Configuration=$configuration -OutputDirectory '$nugetOutputDir ' $versionSwitch "
70+ exec { invoke-expression " & '$nugetExe ' pack '$csprojFile ' -Symbols -Properties Configuration=$configuration -OutputDirectory '$nugetOutputDir ' $versionSwitch "
71+ }
7172}
7273
7374task SetVersion {
74-
75- $completeVersionNumber = Get-VersionNumber
75+ $completeVersionNumber = Get-VersionNumber
7676
77- if (! [string ]::IsNullOrEmpty($buildNumber ))
78- {
79- # running in TeamCity
80- Write-Host " ##teamcity[buildNumber '$completeVersionNumber ']"
81- }
77+ if (! [string ]::IsNullOrEmpty($buildNumber ))
78+ {
79+ # running in TeamCity
80+ Write-Host " ##teamcity[buildNumber '$completeVersionNumber ']"
81+ }
8282
83- Write-Host " Setting version to $completeVersionNumber "
84-
85- Set-Version $completeVersionNumber
83+ Write-Host " Setting version to $completeVersionNumber "
84+
85+ Set-Version $completeVersionNumber
8686}
8787
0 commit comments