diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/XASdkTests.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/XASdkTests.cs index d22ce8a4c94..bae33a40d5f 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/XASdkTests.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/XASdkTests.cs @@ -843,6 +843,9 @@ public void DotNetPublish ([Values (false, true)] bool isRelease, [ValueSource(n var dotnetVersion = (string)data[0]; var platform = (string)data[1]; var apiLevel = (int)data[2]; + if (dotnetVersion != "net8.0") { + Assert.Ignore ("https://github.com/dotnet/runtime/issues/77385"); + } if (string.IsNullOrEmpty (platform)) Assert.Ignore ($"Test for API level {apiLevel} was skipped as it matched the default or latest stable API level."); diff --git a/tests/MSBuildDeviceIntegration/Tests/XASdkDeployTests.cs b/tests/MSBuildDeviceIntegration/Tests/XASdkDeployTests.cs index 68eb6d66170..79a48c3c0e2 100644 --- a/tests/MSBuildDeviceIntegration/Tests/XASdkDeployTests.cs +++ b/tests/MSBuildDeviceIntegration/Tests/XASdkDeployTests.cs @@ -72,6 +72,9 @@ public class XASdkDeployTests : DeviceTest public void DotNetInstallAndRun (bool isRelease, bool xamarinForms, string targetFramework) { AssertHasDevices (); + if (!targetFramework.Contains ("net8.0")) { + Assert.Ignore ("https://github.com/dotnet/runtime/issues/77385"); + } XASdkProject proj; if (xamarinForms) { @@ -157,10 +160,13 @@ public void TypeAndMemberRemapping ([Values (false, true)] bool isRelease) [Test] [Category ("Debugger"), Category ("Node-4")] - public void DotNetDebug ([Values("net6.0-android", "net7.0-android")] string targetFramework) + public void DotNetDebug ([Values("net6.0-android", "net7.0-android", "net8.0-android")] string targetFramework) { AssertCommercialBuild (); AssertHasDevices (); + if (!targetFramework.Contains ("net8.0")) { + Assert.Ignore ("https://github.com/dotnet/runtime/issues/77385"); + } var proj = new XASdkProject (); proj.TargetFramework = targetFramework;