forked from xamarin/Xamarin.Forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.create-nuget.bat
157 lines (144 loc) · 8.86 KB
/
.create-nuget.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
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.
@echo off
rem stub uncommon targets
set NUGET_EXE=%NUGET_DIR%NuGet.exe
mkdir Xamarin.Forms.Platform.MacOS\bin\debug\
mkdir Xamarin.Forms.Platform.Tizen\bin\debug\tizen40\
mkdir Xamarin.Forms.Platform.MacOS\bin\debug\
mkdir Xamarin.Forms.Platform.UAP\bin\debug\
mkdir Xamarin.Forms.Platform.ios\bin\debug\
mkdir Stubs\Xamarin.Forms.Platform.iOS\bin\iPhone\debug\
mkdir Xamarin.Forms.Platform.iOS\bin\debug\ar
mkdir Xamarin.Forms.Platform.iOS\bin\debug\ca
mkdir Xamarin.Forms.Platform.iOS\bin\debug\cs
mkdir Xamarin.Forms.Platform.iOS\bin\debug\da
mkdir Xamarin.Forms.Platform.iOS\bin\debug\de
mkdir Xamarin.Forms.Platform.iOS\bin\debug\el
mkdir Xamarin.Forms.Platform.iOS\bin\debug\es
mkdir Xamarin.Forms.Platform.iOS\bin\debug\fi
mkdir Xamarin.Forms.Platform.iOS\bin\debug\fr
mkdir Xamarin.Forms.Platform.iOS\bin\debug\he
mkdir Xamarin.Forms.Platform.iOS\bin\debug\hi
mkdir Xamarin.Forms.Platform.iOS\bin\debug\hr
mkdir Xamarin.Forms.Platform.iOS\bin\debug\hu
mkdir Xamarin.Forms.Platform.iOS\bin\debug\id
mkdir Xamarin.Forms.Platform.iOS\bin\debug\it
mkdir Xamarin.Forms.Platform.iOS\bin\debug\ja
mkdir Xamarin.Forms.Platform.iOS\bin\debug\ko
mkdir Xamarin.Forms.Platform.iOS\bin\debug\ms
mkdir Xamarin.Forms.Platform.iOS\bin\debug\nb
mkdir Xamarin.Forms.Platform.iOS\bin\debug\nl
mkdir Xamarin.Forms.Platform.iOS\bin\debug\pl
mkdir Xamarin.Forms.Platform.iOS\bin\debug\pt-BR
mkdir Xamarin.Forms.Platform.iOS\bin\debug\pt
mkdir Xamarin.Forms.Platform.iOS\bin\debug\ro
mkdir Xamarin.Forms.Platform.iOS\bin\debug\ru
mkdir Xamarin.Forms.Platform.iOS\bin\debug\sk
mkdir Xamarin.Forms.Platform.iOS\bin\debug\sv
mkdir Xamarin.Forms.Platform.iOS\bin\debug\th
mkdir Xamarin.Forms.Platform.iOS\bin\debug\tr
mkdir Xamarin.Forms.Platform.iOS\bin\debug\uk
mkdir Xamarin.Forms.Platform.iOS\bin\debug\vi
mkdir Xamarin.Forms.Platform.iOS\bin\debug\zh-Hans
mkdir Xamarin.Forms.Platform.iOS\bin\debug\zh-Hant
mkdir Xamarin.Forms.Platform.iOS\bin\debug\zh-HK
mkdir Xamarin.Forms.Platform.Android\bin\debug
echo foo > Xamarin.Forms.Platform.Android\bin\debug\Xamarin.Forms.Platform.Android.dll
mkdir Xamarin.Forms.Platform.Android.FormsViewGroup\bin\debug
echo foo > Xamarin.Forms.Platform.Android.FormsViewGroup\bin\debug\FormsViewGroup.dll
mkdir Stubs\Xamarin.Forms.Platform.Android\bin\debug
echo foo > Stubs\Xamarin.Forms.Platform.Android\bin\debug\Xamarin.Forms.Platform.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\ar\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\ca\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\cs\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\da\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\de\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\el\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\es\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\fi\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\fr\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\he\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\hi\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\hr\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\hu\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\id\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\it\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\ja\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\ko\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\ms\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\nb\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\nl\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\pl\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\pt-BR\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\pt\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\ro\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\ru\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\sk\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\sv\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\th\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\tr\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\uk\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\vi\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\zh-Hans\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\zh-Hant\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\zh-HK\Xamarin.Forms.Platform.iOS.resources.dll
echo foo > Xamarin.Forms.Platform.iOS\bin\debug\Xamarin.Forms.Platform.iOS.dll
echo foo > Stubs\Xamarin.Forms.Platform.iOS\bin\iPhone\debug\Xamarin.Forms.Platform.dll
echo foo > Xamarin.Forms.Platform.MacOS\bin\debug\Xamarin.forms.Platform.macOS.dll
echo foo > Xamarin.Forms.Platform.MacOS\bin\debug\Xamarin.forms.Platform.dll
mkdir Stubs\Xamarin.Forms.Platform.Tizen\bin\debug\tizen40
echo foo > Stubs\Xamarin.Forms.Platform.Tizen\bin\debug\tizen40\Xamarin.Forms.Platform.dll
mkdir Xamarin.Forms.Platform.Tizen\bin\debug\tizen40
echo foo > Xamarin.Forms.Platform.Tizen\bin\debug\tizen40\Xamarin.forms.Platform.tizen.dll
echo foo > Xamarin.Forms.Platform.Tizen\bin\debug\tizen40\Xamarin.forms.Platform.dll
mkdir Xamarin.Forms.Platform.UAP\bin\debug\
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\Xamarin.Forms.Platform.UAP.dll
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\Xamarin.Forms.Platform.UAP.pri
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\Xamarin.Forms.Platform.UAP.xr.xml
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\FormsProgressBarStyle.xbf
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\FormsFlyout.xbf
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\FormsCommandBarStyle.xbf
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\Resources.xbf
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\FormsTextBoxStyle.xbf
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\AutoSuggestStyle.xbf
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\SliderStyle.xbf
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\MasterDetailControlStyle.xbf
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\PageControlStyle.xbf
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\TabbedPageStyle.xbf
echo foo > Xamarin.Forms.Platform.UAP\bin\debug\FormsEmbeddedPageWrapper.xbf
if "%1" == "droid" (
%NUGET_EXE% restore .xamarin.forms.android.nuget.sln
msbuild /v:m /p:platform="any cpu" /p:WarningLevel=0 .xamarin.forms.android.nuget.sln
)
if "%1" == "ios" (
%NUGET_EXE% restore .xamarin.forms.ios.nuget.sln
msbuild /v:m /p:platform="any cpu" .xamarin.forms.ios.nuget.sln
)
if "%1" == "droidios" (
%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
)
if "%1" == "uap" (
%NUGET_EXE% restore .xamarin.forms.uap.nuget.sln
msbuild /v:m /p:platform="any cpu" .xamarin.forms.uap.nuget.sln /t:restore
msbuild /v:m /p:platform="any cpu" .xamarin.forms.uap.nuget.sln
)
if "%1" == "all" (
%NUGET_EXE% restore .xamarin.forms.sln
msbuild /v:m /p:platform="any cpu" .xamarin.forms.uap.nuget.sln /t:restore
msbuild /v:m /p:platform="any cpu" /p:WarningLevel=0 .xamarin.forms.nuget.sln
)
if "%DEBUG_VERSION%"=="" set DEBUG_VERSION=0
set /a DEBUG_VERSION=%DEBUG_VERSION%+1
pushd .nuspec
%NUGET_EXE% pack Xamarin.Forms.nuspec -properties configuration=debug;platform=anycpu -Version 9.9.%DEBUG_VERSION%
if "%CREATE_MAP_NUGET%" NEQ "" (
REM Requires building x86, x64, AMD
%NUGET_EXE% pack Xamarin.Forms.Maps.nuspec -properties configuration=debug;platform=anycpu -Version 9.9.%DEBUG_VERSION%
)
popd