[xharness] Make sure a project reference's Name matches the file name of the reference. Fixes #43181. (#709)

Apparently XS can't find referenced project (to build them) otherwise.

It works fine when building using xbuild though.

https://bugzilla.xamarin.com/show_bug.cgi?id=43181
This commit is contained in:
Rolf Bjarne Kvinge 2016-08-30 19:31:40 +02:00 коммит произвёл Sebastien Pouliot
Родитель 1d5bbedc61
Коммит cbfd83be92
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -333,6 +333,8 @@ namespace xharness
var include = n.Attributes ["Include"];
include.Value = include.Value.Replace (".csproj", suffix + ".csproj");
include.Value = include.Value.Replace (".fsproj", suffix + ".fsproj");
var nameElement = n ["Name"];
nameElement.InnerText = System.IO.Path.GetFileNameWithoutExtension (include.Value);
}
}