Skip to content

Commit 874fb8b

Browse files
committed
Add xamarin build batch files.
1 parent bd0cc4a commit 874fb8b

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

PackAll.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@echo off
2+
call PackXamarin.bat
3+
pause
4+
call Pack.bat
5+
pause
6+
:: Rename .latest manually and upload it with .nuget\nuget.exe

PackXamarin.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@powershell .\packxamarin.ps1 %1

PackXamarin.ps1

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
param([Switch]$Rebuild)
2+
3+
[string]$temp = '.\nugettmp'
4+
[string]$builder = "$env:windir\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
5+
6+
[string]$sln = 'MsgPack.Xamarin.sln'
7+
8+
[string]$nuspec = 'MsgPack.nuspec'
9+
10+
$buildOptions = @()
11+
if( $Rebuild )
12+
{
13+
$buildOptions += '/t:Rebuild'
14+
}
15+
16+
$buildOptions += '/p:Configuration=Release'
17+
# build
18+
&$builder $sln $buildOptions

0 commit comments

Comments
 (0)