[msbuild] Properly locate .nib files produced for iOS 5.x (#241)

iOS 5.x uses .nib files and not directories.
This commit is contained in:
Jeffrey Stedfast 2016-06-20 14:11:39 -04:00 коммит произвёл Sebastien Pouliot
Родитель 75fcf376d3
Коммит f3199064d4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -137,7 +137,7 @@ namespace Xamarin.MacDev.Tasks
var fileName = name + "~" + target + extension;
var path = Path.Combine (dir, fileName);
if (!Directory.Exists (path))
if (!Directory.Exists (path) && !File.Exists (path))
continue;
var logicalName = !string.IsNullOrEmpty (nibDir) ? Path.Combine (nibDir, fileName) : fileName;
@ -148,7 +148,7 @@ namespace Xamarin.MacDev.Tasks
yield return item;
}
if (Directory.Exists (expected.ItemSpec))
if (Directory.Exists (expected.ItemSpec) || File.Exists (expected.ItemSpec))
yield return expected;
yield break;