@@ -192,15 +192,21 @@ restoreBuildTools()
192
192
193
193
isMSBuildOnNETCoreSupported ()
194
194
{
195
+ # This needs to be updated alongwith corresponding changes to netci.groovy.
195
196
__isMSBuildOnNETCoreSupported=0
196
197
197
- if [ " $__BuildOS " == " Linux" ]; then
198
- if [ " $__DistroName " == " ubuntu" ]; then
198
+ if [ " $__BuildArch " == " x64" ]; then
199
+ if [ " $__BuildOS " == " Linux" ]; then
200
+ if [ " $__DistroName " == " ubuntu" ]; then
201
+ __OSVersion=$( lsb_release -sr)
202
+ if [ " $__OSVersion " == " 14.04" ]; then
203
+ __isMSBuildOnNETCoreSupported=1
204
+ fi
205
+ fi
206
+ elif [ " $__BuildOS " == " OSX" ]; then
199
207
__isMSBuildOnNETCoreSupported=1
200
- fi
201
- elif [ " $__BuildOS " == " OSX" ]; then
202
- __isMSBuildOnNETCoreSupported=1
203
- fi
208
+ fi
209
+ fi
204
210
}
205
211
206
212
build_mscorlib ()
@@ -211,12 +217,10 @@ build_mscorlib()
211
217
return
212
218
fi
213
219
214
- # CI_TODO: Until we switch CI to stop building mscorlib for platforms supported by isMSBuildOnNETCoreSupported function,
215
- # we should ignore skipping building mscorlib.
216
- # if [ $__SkipMSCorLib == 1 ]; then
217
- # echo "Skipping building mscorlib."
218
- # return
219
- # fi
220
+ if [ $__SkipMSCorLib == 1 ]; then
221
+ echo " Skipping building mscorlib."
222
+ return
223
+ fi
220
224
221
225
# Restore buildTools
222
226
@@ -256,12 +260,10 @@ generate_NugetPackages()
256
260
return
257
261
fi
258
262
259
- # CI_TODO: Until we switch CI to stop building mscorlib for platforms supported by isMSBuildOnNETCoreSupported function,
260
- # we should ignore skipping building mscorlib.
261
- # if [ $__SkipMSCorLib == 1 ]; then
262
- # echo "Unable to generate Microsoft.NETCore.Runtime.CoreCLR nuget package since mscorlib was not built."
263
- # return
264
- # fi
263
+ if [ $__SkipMSCorLib == 1 ]; then
264
+ echo " Unable to generate Microsoft.NETCore.Runtime.CoreCLR nuget package since mscorlib was not built."
265
+ return
266
+ fi
265
267
266
268
echo " Generating nuget packages for " $__BuildOS
267
269
0 commit comments