diff --git a/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared.Tests/Samples/SystemXunit.csproj b/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared.Tests/Samples/SystemXunit.csproj
index 37b8004c06..db58a877db 100644
--- a/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared.Tests/Samples/SystemXunit.csproj
+++ b/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared.Tests/Samples/SystemXunit.csproj
@@ -72,7 +72,7 @@
- Info.plist
+ Info.plist
Entitlements.plist
diff --git a/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared.Tests/Samples/TestProject/SystemXunit.csproj b/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared.Tests/Samples/TestProject/SystemXunit.csproj
index c6c6eaf468..4fe8c28767 100644
--- a/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared.Tests/Samples/TestProject/SystemXunit.csproj
+++ b/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared.Tests/Samples/TestProject/SystemXunit.csproj
@@ -86,7 +86,7 @@
- Info.plist
+ Info.plist
Entitlements.plist
diff --git a/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/TestImporter/Templates/Managed/Resources/Managed.iOS.csproj.in b/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/TestImporter/Templates/Managed/Resources/Managed.iOS.csproj.in
index 9459762704..c192551273 100644
--- a/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/TestImporter/Templates/Managed/Resources/Managed.iOS.csproj.in
+++ b/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/TestImporter/Templates/Managed/Resources/Managed.iOS.csproj.in
@@ -165,7 +165,7 @@
- Info.plist
+ Info.plist
Entitlements.plist
diff --git a/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/TestImporter/Templates/Managed/Resources/Managed.tvOS.csproj.in b/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/TestImporter/Templates/Managed/Resources/Managed.tvOS.csproj.in
index 8f1cca839f..18ec4a9e61 100644
--- a/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/TestImporter/Templates/Managed/Resources/Managed.tvOS.csproj.in
+++ b/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/TestImporter/Templates/Managed/Resources/Managed.tvOS.csproj.in
@@ -152,7 +152,7 @@
- Info.plist
+ Info.plist
Entitlements.plist
diff --git a/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/Utilities/ProjectFileExtensions.cs b/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/Utilities/ProjectFileExtensions.cs
index f27915c5c1..74f4ce5cd3 100644
--- a/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/Utilities/ProjectFileExtensions.cs
+++ b/tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/Utilities/ProjectFileExtensions.cs
@@ -601,18 +601,10 @@ namespace Microsoft.DotNet.XHarness.iOS.Shared.Utilities {
{
var logicalNames = csproj.SelectNodes ("//*[local-name() = 'LogicalName']");
foreach (XmlNode ln in logicalNames) {
- if (!ln.InnerText.Contains("Info.plist"))
+ if (ln.InnerText != "Info.plist")
continue;
return ln.ParentNode;
}
- var nodes = csproj.SelectNodes ("//*[local-name() = 'None' and contains(@Include ,'Info.plist')]");
- if (nodes.Count > 0) {
- return nodes [0]; // return the value, which could be Info.plist or a full path (linked).
- }
- nodes = csproj.SelectNodes ("//*[local-name() = 'None' and contains(@Include ,'Info-tv.plist')]");
- if (nodes.Count > 0) {
- return nodes [0]; // return the value, which could be Info.plist or a full path (linked).
- }
if (throw_if_not_found)
throw new Exception ($"Could not find Info.plist include.");
return null;
diff --git a/tests/xharness/Xharness.Tests/Samples/SystemXunit.csproj b/tests/xharness/Xharness.Tests/Samples/SystemXunit.csproj
index 37b8004c06..db58a877db 100644
--- a/tests/xharness/Xharness.Tests/Samples/SystemXunit.csproj
+++ b/tests/xharness/Xharness.Tests/Samples/SystemXunit.csproj
@@ -72,7 +72,7 @@
- Info.plist
+ Info.plist
Entitlements.plist
diff --git a/tests/xharness/Xharness.Tests/Samples/TestProject/SystemXunit.csproj b/tests/xharness/Xharness.Tests/Samples/TestProject/SystemXunit.csproj
index c6c6eaf468..4fe8c28767 100644
--- a/tests/xharness/Xharness.Tests/Samples/TestProject/SystemXunit.csproj
+++ b/tests/xharness/Xharness.Tests/Samples/TestProject/SystemXunit.csproj
@@ -86,7 +86,7 @@
- Info.plist
+ Info.plist
Entitlements.plist