2018-09-26 04:29:17 +03:00
|
|
|
rem This is not our official nuget build script.
|
|
|
|
rem This is used as a quick and dirty way create nuget packages used to test user issue reproductions.
|
|
|
|
rem This is updated as XF developers use it to test reproductions. As such, it may not always work.
|
|
|
|
rem This is not ideal, but it's better than nothing, and it usually works fine.
|
|
|
|
|
2018-01-02 13:58:21 +03:00
|
|
|
@echo off
|
2018-03-10 04:32:02 +03:00
|
|
|
rem stub uncommon targets
|
|
|
|
set NUGET_EXE=%NUGET_DIR%NuGet.exe
|
2018-05-22 00:14:53 +03:00
|
|
|
|
|
|
|
if "%1" == "droid" (
|
2019-05-07 23:12:00 +03:00
|
|
|
set CONFIG=debug
|
|
|
|
call .create-stubs.bat
|
2018-05-22 00:49:22 +03:00
|
|
|
%NUGET_EXE% restore .xamarin.forms.android.nuget.sln
|
2018-12-07 03:56:29 +03:00
|
|
|
msbuild /v:m /p:platform="any cpu" /p:WarningLevel=0 /p:CreateAllAndroidTargets=true .xamarin.forms.android.nuget.sln
|
2018-05-22 00:14:53 +03:00
|
|
|
)
|
2019-05-07 23:12:00 +03:00
|
|
|
if "%1" == "rdroid" (
|
|
|
|
set CONFIG=release
|
|
|
|
call .create-stubs.bat
|
|
|
|
%NUGET_EXE% restore .xamarin.forms.android.nuget.sln
|
|
|
|
msbuild /v:m /p:configuration=release /p:platform="any cpu" /p:WarningLevel=0 /p:CreateAllAndroidTargets=true .xamarin.forms.android.nuget.sln
|
|
|
|
)
|
|
|
|
if "%1" == "pdroid" (
|
|
|
|
set CONFIG=release
|
|
|
|
msbuild /v:m /p:configuration=release /p:platform="anyCpu" /p:WarningLevel=0 /p:CreateAllAndroidTargets=true Xamarin.Forms.Platform.Android\Xamarin.Forms.Platform.Android.csproj
|
|
|
|
)
|
2018-05-22 00:14:53 +03:00
|
|
|
if "%1" == "ios" (
|
2019-05-07 23:12:00 +03:00
|
|
|
set CONFIG=debug
|
|
|
|
call .create-stubs.bat
|
2018-05-22 03:14:16 +03:00
|
|
|
%NUGET_EXE% restore .xamarin.forms.ios.nuget.sln
|
|
|
|
msbuild /v:m /p:platform="any cpu" .xamarin.forms.ios.nuget.sln
|
2018-05-22 00:14:53 +03:00
|
|
|
)
|
2018-08-22 23:31:05 +03:00
|
|
|
if "%1" == "droidios" (
|
2019-05-07 23:12:00 +03:00
|
|
|
set CONFIG=debug
|
|
|
|
call .create-stubs.bat
|
2018-08-22 23:31:05 +03:00
|
|
|
%NUGET_EXE% restore .xamarin.forms.android.nuget.sln
|
|
|
|
%NUGET_EXE% restore .xamarin.forms.ios.nuget.sln
|
|
|
|
msbuild /v:m /p:platform="any cpu" /p:WarningLevel=0 .xamarin.forms.android.nuget.sln
|
|
|
|
msbuild /v:m /p:platform="any cpu" .xamarin.forms.ios.nuget.sln
|
|
|
|
)
|
2018-06-30 03:03:12 +03:00
|
|
|
if "%1" == "uap" (
|
2019-05-07 23:12:00 +03:00
|
|
|
set CONFIG=debug
|
|
|
|
call .create-stubs.bat
|
2018-06-30 03:03:12 +03:00
|
|
|
%NUGET_EXE% restore .xamarin.forms.uap.nuget.sln
|
2018-08-22 23:31:05 +03:00
|
|
|
msbuild /v:m /p:platform="any cpu" .xamarin.forms.uap.nuget.sln /t:restore
|
2018-06-30 03:03:12 +03:00
|
|
|
msbuild /v:m /p:platform="any cpu" .xamarin.forms.uap.nuget.sln
|
|
|
|
)
|
|
|
|
if "%1" == "all" (
|
2019-05-07 23:12:00 +03:00
|
|
|
set CONFIG=debug
|
|
|
|
call .create-stubs.bat
|
2018-03-10 04:32:02 +03:00
|
|
|
%NUGET_EXE% restore .xamarin.forms.sln
|
2018-08-22 23:31:05 +03:00
|
|
|
msbuild /v:m /p:platform="any cpu" .xamarin.forms.uap.nuget.sln /t:restore
|
2018-12-07 03:56:29 +03:00
|
|
|
msbuild /v:m /p:platform="any cpu" /p:WarningLevel=0 /p:CreateAllAndroidTargets=true .xamarin.forms.nuget.sln
|
2018-03-10 04:32:02 +03:00
|
|
|
)
|
2018-05-22 00:14:53 +03:00
|
|
|
|
2017-03-14 17:33:20 +03:00
|
|
|
if "%DEBUG_VERSION%"=="" set DEBUG_VERSION=0
|
|
|
|
set /a DEBUG_VERSION=%DEBUG_VERSION%+1
|
2017-03-10 22:38:28 +03:00
|
|
|
pushd .nuspec
|
2019-05-07 23:12:00 +03:00
|
|
|
%NUGET_EXE% pack Xamarin.Forms.nuspec -properties configuration=%CONFIG%;platform=anycpu -Version 9.9.%DEBUG_VERSION%
|
2018-01-02 13:58:21 +03:00
|
|
|
if "%CREATE_MAP_NUGET%" NEQ "" (
|
|
|
|
REM Requires building x86, x64, AMD
|
2019-05-07 23:12:00 +03:00
|
|
|
%NUGET_EXE% pack Xamarin.Forms.Maps.nuspec -properties configuration=%CONFIG%;platform=anycpu -Version 9.9.%DEBUG_VERSION%
|
2018-01-02 13:58:21 +03:00
|
|
|
)
|
2017-03-10 22:38:28 +03:00
|
|
|
popd
|