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))