diff --git a/tests/linker/ios/link all/LinkAllTest.cs b/tests/linker/ios/link all/LinkAllTest.cs index ee1e30a072b9..c887fc64d7da 100644 --- a/tests/linker/ios/link all/LinkAllTest.cs +++ b/tests/linker/ios/link all/LinkAllTest.cs @@ -151,6 +151,8 @@ public enum CertificateProblem : long { CertTRUSTEFAIL = 0x800B010B, } +#if !NET + // ICertificatePolicy has been removed from .NET 5+ class TestPolicy : ICertificatePolicy { const int RecoverableTrustFailure = 5; // SecTrustResult @@ -202,6 +204,7 @@ public void TrustUsingOldPolicy () ServicePointManager.CertificatePolicy = old; } } +#endif [Test] public void DetectPlatform () @@ -424,6 +427,7 @@ public void AssemblyReferences_16213 () } #if !__WATCHOS__ +#if !NET // OpenTK-1.0.dll isn't supported in .NET yet [Test] public void OpenTk10_Preserved () { @@ -442,6 +446,7 @@ public void OpenTk10_Preserved () core = Helper.GetType ("OpenTK.Graphics.ES20.GL/Core, OpenTK-1.0", false); Assert.NotNull (core, "ES20/Core"); } +#endif // !NET #endif // !__WATCHOS__ [Test] diff --git a/tests/linker/ios/link all/dotnet/iOS/link all.csproj b/tests/linker/ios/link all/dotnet/iOS/link all.csproj new file mode 100644 index 000000000000..bdda8c051359 --- /dev/null +++ b/tests/linker/ios/link all/dotnet/iOS/link all.csproj @@ -0,0 +1,101 @@ + + + + net5.0 + ios-x64 + Exe + NET + latest + linkall + link all + Full + xamarinios10;$(AssetTargetFallback) + true + --optimize=all,-remove-dynamic-registrar,-force-rejected-types-removal + + + + + ../../support.dll + + + + + + + + + + + + + + + + + + + + + + + + + + Info.plist + + + + + + + + + + + + + + + OptimizeGeneratedCodeTest.cs + + + + + + + + + ReflectionTest.cs + + + + + TestRuntime.cs + + + CommonLinkAllTest.cs + + + CommonLinkAnyTest.cs + + + NetworkResources.cs + + + + + + + + + + + + + + + + + + diff --git a/tests/xharness/Harness.cs b/tests/xharness/Harness.cs index 8187719950d9..e234cf42e32f 100644 --- a/tests/xharness/Harness.cs +++ b/tests/xharness/Harness.cs @@ -395,6 +395,7 @@ void AutoConfigureIOS () IOSTestProjects.Add (new iOSTestProject (Path.GetFullPath (Path.Combine (RootDirectory, "linker", "ios", "dont link", "dont link.csproj"))) { Configurations = new string [] { "Debug", "Release" } }); IOSTestProjects.Add (new iOSTestProject (Path.GetFullPath (Path.Combine (RootDirectory, "linker", "ios", "dont link", "dotnet", "iOS", "dont link.csproj"))) { Configurations = new string [] { "Debug", "Release" }, IsDotNetProject = true, SkipiOSVariation = false, SkiptvOSVariation = true, SkipwatchOSVariation = true, SkipTodayExtensionVariation = true, SkipDeviceVariations = true, SkipiOS32Variation = true }); IOSTestProjects.Add (new iOSTestProject (Path.GetFullPath (Path.Combine (RootDirectory, "linker", "ios", "link all", "link all.csproj"))) { Configurations = new string [] { "Debug", "Release" } }); + IOSTestProjects.Add (new iOSTestProject (Path.GetFullPath (Path.Combine (RootDirectory, "linker", "ios", "link all", "dotnet", "iOS", "link all.csproj"))) { Configurations = new string [] { "Debug", "Release" }, IsDotNetProject = true, SkipiOSVariation = false, SkiptvOSVariation = true, SkipwatchOSVariation = true, SkipTodayExtensionVariation = true, SkipDeviceVariations = true, SkipiOS32Variation = true, Ignore = true }); IOSTestProjects.Add (new iOSTestProject (Path.GetFullPath (Path.Combine (RootDirectory, "linker", "ios", "link sdk", "link sdk.csproj"))) { Configurations = new string [] { "Debug", "Release" } }); IOSTestProjects.Add (new iOSTestProject (Path.GetFullPath (Path.Combine (RootDirectory, "linker", "ios", "link sdk", "dotnet", "iOS", "link sdk.csproj"))) { Configurations = new string [] { "Debug" /*, "Release" */ }, IsDotNetProject = true, SkipiOSVariation = false, SkiptvOSVariation = true, SkipwatchOSVariation = true, SkipTodayExtensionVariation = true, SkipDeviceVariations = true, SkipiOS32Variation = true });