From c09b462d2c6cff976512d1a0e3b486dd37b23cc4 Mon Sep 17 00:00:00 2001 From: Ivan Povazan Date: Fri, 17 Feb 2023 17:40:09 +0100 Subject: [PATCH] Use NativeDependencies property instead to align with AndroidAppBuilder changes --- src/mono/sample/iOS-NativeAOT/Program.csproj | 2 +- src/tasks/AppleAppBuilder/AppleAppBuilder.cs | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/mono/sample/iOS-NativeAOT/Program.csproj b/src/mono/sample/iOS-NativeAOT/Program.csproj index 85c697fa6307a..ec90992e8f6af 100644 --- a/src/mono/sample/iOS-NativeAOT/Program.csproj +++ b/src/mono/sample/iOS-NativeAOT/Program.csproj @@ -64,7 +64,7 @@ - /// List of static libraries to link with the program. + /// Extra native dependencies to link into the app /// - public ITaskItem[] NativeLibraries { get; set; } = Array.Empty(); + public string[] NativeDependencies { get; set; } = Array.Empty(); public void ValidateRuntimeSelection() { @@ -272,13 +272,9 @@ public override bool Execute() } } - foreach (ITaskItem nativeLibrary in NativeLibraries) + foreach (var nativeDependency in NativeDependencies) { - string nativeLibraryFile = nativeLibrary.GetMetadata("Identity"); - if (!string.IsNullOrEmpty(nativeLibraryFile)) - { - assemblerFilesToLink.Add(nativeLibraryFile); - } + assemblerFilesToLink.Add(nativeDependency); } if (!ForceInterpreter && (isDevice || ForceAOT) && (assemblerFiles.Count == 0 && !UseNativeAOTRuntime))