diff --git a/src/Microsoft.DotNet.XHarness.iOS.Shared/Utilities/ProjectFileExtensions.cs b/src/Microsoft.DotNet.XHarness.iOS.Shared/Utilities/ProjectFileExtensions.cs index b65c7cdee..b56b30a58 100644 --- a/src/Microsoft.DotNet.XHarness.iOS.Shared/Utilities/ProjectFileExtensions.cs +++ b/src/Microsoft.DotNet.XHarness.iOS.Shared/Utilities/ProjectFileExtensions.cs @@ -558,7 +558,7 @@ public static void FixProjectReferences(this XmlDocument csproj, string? subdir, public static void FixTestLibrariesReferences(this XmlDocument csproj, string platform) { - var nodes = csproj.SelectNodes("//*[local-name() = 'ObjcBindingNativeLibrary' or local-name() = 'ObjcBindingNativeFramework']"); + var nodes = csproj.SelectNodes("//*[local-name() = 'ObjcBindingNativeLibrary' or local-name() = 'ObjcBindingNativeFramework' or local-name() = 'NativeReference']"); var test_libraries = new string[] { "libtest.a", "libtest2.a", @@ -1206,6 +1206,7 @@ public static void ResolveAllPaths(this XmlDocument csproj, string project_path, new string [] { "FilesToCopyChannels", "Include" }, new string [] { "CustomMetalSmeltingInput", "Include" }, new string [] { "Metal", "Include" }, + new string [] { "NativeReference", "Include" }, }; var nodes_with_variables = new string[] {