@@ -1307,10 +1307,15 @@ public void MissingProjectReference ()
1307
1307
libBuilder . ThrowOnBuildFailure =
1308
1308
appBuilder . ThrowOnBuildFailure = false ;
1309
1309
1310
+ int expectedWarnings = 1 ;
1311
+ if ( TargetRuntimeHelper . UseCoreCLR && TargetRuntimeHelper . CoreClrIsExperimental ) {
1312
+ expectedWarnings ++ ; // Warning XA1040 will be issued
1313
+ }
1314
+
1310
1315
// Build app before library is built
1311
1316
Assert . IsFalse ( appBuilder . Build ( app ) , "app build should have failed." ) ;
1312
1317
Assert . IsTrue ( StringAssertEx . ContainsText ( appBuilder . LastBuildOutput , "warning MSB9008" ) , "Should receive MSB9008" ) ;
1313
- Assert . IsTrue ( StringAssertEx . ContainsText ( appBuilder . LastBuildOutput , " 1 Warning(s)") , "Should receive 1 Warning" ) ;
1318
+ Assert . IsTrue ( StringAssertEx . ContainsText ( appBuilder . LastBuildOutput , $ " { expectedWarnings } Warning(s)") , $ "Should receive { expectedWarnings } Warning(s) ") ;
1314
1319
Assert . IsTrue ( StringAssertEx . ContainsText ( appBuilder . LastBuildOutput , "error CS0246" ) , "Should receive CS0246" ) ;
1315
1320
Assert . IsTrue ( StringAssertEx . ContainsText ( appBuilder . LastBuildOutput , " 1 Error(s)" ) , "Should receive 1 Error" ) ;
1316
1321
@@ -1435,10 +1440,10 @@ public void AndroidAssetMissing ()
1435
1440
public void ChangeSupportedAbis ( )
1436
1441
{
1437
1442
var proj = new XamarinFormsAndroidApplicationProject ( ) ;
1438
- proj . SetAndroidSupportedAbis ( "armeabi-v7a " ) ;
1443
+ proj . SetAndroidSupportedAbis ( "arm64-v8a " ) ;
1439
1444
using ( var b = CreateApkBuilder ( ) ) {
1440
1445
b . Build ( proj ) ;
1441
- b . Build ( proj , parameters : new [ ] { $ "{ KnownProperties . RuntimeIdentifier } =android-x86 " } , doNotCleanupOnUpdate : true ) ;
1446
+ b . Build ( proj , parameters : new [ ] { $ "{ KnownProperties . RuntimeIdentifier } =android-x64 " } , doNotCleanupOnUpdate : true ) ;
1442
1447
}
1443
1448
}
1444
1449
0 commit comments