@@ -111,8 +111,10 @@ Try {
111
111
& .\.nuget\nuget.exe restore WindowsAppRuntime.sln - configfile nuget.config
112
112
& .\.nuget\nuget.exe restore " dev\Bootstrap\CS\Microsoft.WindowsAppRuntime.Bootstrap.Net\Microsoft.WindowsAppRuntime.Bootstrap.Net.csproj" - configfile nuget.config
113
113
114
- # If the call to restore WindowsAppRuntime_Insights fails check to make sure all Window SDK's from 17760 are installed.
115
- & .\.nuget\nuget.exe restore " dev\WindowsAppRuntime_Insights\packages.config" - ConfigFile " dev\WindowsAppRuntime_Insights\nuget.config" - PackagesDirectory " dev\WindowsAppRuntime_Insights\packages"
114
+ if ($lastexitcode -ne 0 )
115
+ {
116
+ exit 1
117
+ }
116
118
117
119
$srcPath = Get-Childitem - Path ' dev\WindowsAppRuntime_Insights\packages' - File ' MicrosoftTelemetry.h' - Recurse
118
120
@@ -127,6 +129,11 @@ Try {
127
129
}
128
130
}
129
131
}
132
+
133
+ if ($lastexitcode -ne 0 )
134
+ {
135
+ exit 1
136
+ }
130
137
}
131
138
if (($AzureBuildStep -eq " all" ) -Or ($AzureBuildStep -eq " BuildBinaries" ))
132
139
{
@@ -144,6 +151,10 @@ Try {
144
151
/ p:WindowsAppSDKCleanIntermediateFiles= true `
145
152
/ p:AppxSymbolPackageEnabled= false `
146
153
/ p:WindowsAppSDKBuildPipeline= $WindowsAppSDKBuildPipeline
154
+ if ($lastexitcode -ne 0 )
155
+ {
156
+ exit 1
157
+ }
147
158
}
148
159
}
149
160
}
@@ -154,12 +165,17 @@ Try {
154
165
# ------------------
155
166
156
167
# Restore packages from mrt.
157
- & .\.nuget\nuget.exe restore " $MRTSourcesDirectory \mrt\MrtCore.sln" - ConfigFile nuget.config
168
+ & .\.nuget\nuget.exe restore " $MRTSourcesDirectory \mrt\MrtCore.sln" - ConfigFile nuget.config - PackagesDirectory " $MRTSourcesDirectory \mrt\packages "
158
169
& .\.nuget\nuget.exe restore " $MRTSourcesDirectory \mrt\Microsoft.Windows.ApplicationModel.Resources\src\packages.config" - ConfigFile nuget.config - PackagesDirectory " $MRTSourcesDirectory \mrt\packages"
159
170
& .\.nuget\nuget.exe restore " $MRTSourcesDirectory \mrt\mrm\mrmex\packages.config" - ConfigFile nuget.config - PackagesDirectory " $MRTSourcesDirectory \mrt\packages"
160
171
& .\.nuget\nuget.exe restore " $MRTSourcesDirectory \mrt\mrm\mrmmin\packages.config" - ConfigFile nuget.config - PackagesDirectory " $MRTSourcesDirectory \mrt\packages"
161
172
& .\.nuget\nuget.exe restore " $MRTSourcesDirectory \mrt\mrm\unittests\packages.config" - ConfigFile nuget.config - PackagesDirectory " $MRTSourcesDirectory \mrt\packages"
162
173
174
+ if ($lastexitcode -ne 0 )
175
+ {
176
+ exit 1
177
+ }
178
+
163
179
# Init mrtcore
164
180
foreach ($platformToRun in $platform.Split (" ," ))
165
181
{
@@ -172,11 +188,15 @@ Try {
172
188
foreach ($platformToRun in $platform.Split (" ," ))
173
189
{
174
190
write-host " Building MrtCore.sln for configuration $configurationToRun and platform:$platformToRun "
175
- & $msBuildPath / restore `
176
- " $MRTSourcesDirectory \mrt\MrtCore.sln" `
191
+ & $msBuildPath / restore " $MRTSourcesDirectory \mrt\MrtCore.sln" `
177
192
/ p:Configuration= $configurationToRun , Platform= $platformToRun `
178
193
/ p:PGOBuildMode= $PGOBuildMode `
179
194
/ binaryLogger:" BuildOutput/mrtcore.$platformToRun .$configurationToRun .binlog"
195
+
196
+ if ($lastexitcode -ne 0 )
197
+ {
198
+ exit 1
199
+ }
180
200
}
181
201
}
182
202
}
@@ -187,6 +207,10 @@ Try {
187
207
# ------------------
188
208
# build AnyCPU
189
209
& $msBuildPath / restore " dev\Bootstrap\CS\Microsoft.WindowsAppRuntime.Bootstrap.Net\Microsoft.WindowsAppRuntime.Bootstrap.Net.csproj" / p:Configuration= $configurationForMrtAndAnyCPU , Platform= AnyCPU
210
+ if ($lastexitcode -ne 0 )
211
+ {
212
+ exit 1
213
+ }
190
214
}
191
215
if (($AzureBuildStep -eq " all" ) -Or ($AzureBuildStep -eq " StageFiles" ))
192
216
{
@@ -209,6 +233,10 @@ Try {
209
233
foreach ($platformToRun in $platform.Split (" ," ))
210
234
{
211
235
.\build\CopyFilesToStagingDir.ps1 - BuildOutputDir ' BuildOutput' - OverrideDir " $buildOverridePath " - PublishDir " $windowsAppSdkBinariesPath " - NugetDir " $BasePath " - Platform $PlatformToRun - Configuration $ConfigurationToRun
236
+ if ($lastexitcode -ne 0 )
237
+ {
238
+ exit 1
239
+ }
212
240
}
213
241
}
214
242
@@ -276,6 +304,11 @@ Try {
276
304
Copy-Item - Path " $nuSpecsPath \AppxManifest.xml" - Destination " $BasePath "
277
305
Copy-Item - Path " LICENSE" - Destination " $BasePath " - force
278
306
307
+ if ($lastexitcode -ne 0 )
308
+ {
309
+ exit 1
310
+ }
311
+
279
312
# for some reason xslt.load changes the working directory to C:\windows\system32.
280
313
# store the current working directory here.
281
314
$workingDirectory = get-location
@@ -286,6 +319,11 @@ Try {
286
319
$xslt = New-Object System.Xml.Xsl.XslCompiledTransform
287
320
$xslt.Load (" $workingDirectory \build\TransformAppxManifest.xslt" )
288
321
$xslt.Transform (" $workingDirectory \$BasePath \AppxManifest.xml" , " $workingDirectory \$manifestPath \Microsoft.WindowsAppSdk.Foundation.manifest" )
322
+
323
+ if ($lastexitcode -ne 0 )
324
+ {
325
+ exit 1
326
+ }
289
327
}
290
328
if (($AzureBuildStep -eq " all" ) -Or ($AzureBuildStep -eq " PackNuget" ))
291
329
{
@@ -299,6 +337,11 @@ Try {
299
337
300
338
# Make the foundation transport package.
301
339
& .\.nuget\nuget.exe pack $nuspecPath - BasePath $BasePath - OutputDirectory $OutputDirectory
340
+
341
+ if ($lastexitcode -ne 0 )
342
+ {
343
+ exit 1
344
+ }
302
345
}
303
346
}
304
347
Catch
0 commit comments