Skip to content

Commit 26569c0

Browse files
committed
Fix script stability.
PowerShell Copy-Item behaves different as target directory exists or not...
1 parent 48f1755 commit 26569c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PackXamarin.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ if( $Rebuild )
1414
}
1515

1616
$buildOptions += '/p:Configuration=Release'
17+
# cleanup
18+
if ( [IO.Directory]::Exists( ".\bin\Xamarin.iOS10" ) )
19+
{
20+
Remove-Item .\bin\Xamarin.iOS10 -Recurse
21+
}
1722
# build
1823
&$builder $sln $buildOptions
1924
Copy-Item .\bin\MonoTouch10 .\bin\Xamarin.iOS10 -Recurse

0 commit comments

Comments
 (0)