[mtouch/mmp] Fix check if an assembly is a framework assembly. Fixes #36109. (#1000)

Fix check if an assembly is a framework assembly to take into account symlinks.

https://bugzilla.xamarin.com/show_bug.cgi?id=36109
This commit is contained in:
Rolf Bjarne Kvinge 2016-10-14 20:14:27 +02:00 коммит произвёл Sebastien Pouliot
Родитель cf0be91860
Коммит 0dd27141d6
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -32,8 +32,10 @@ namespace Xamarin.Bundler {
}
set {
full_path = value;
if (!is_framework_assembly.HasValue)
is_framework_assembly = full_path.StartsWith (Path.GetDirectoryName (Target.Resolver.FrameworkDirectory), StringComparison.Ordinal);
if (!is_framework_assembly.HasValue) {
var real_full_path = Target.GetRealPath (full_path);
is_framework_assembly = real_full_path.StartsWith (Path.GetDirectoryName (Path.GetDirectoryName (Target.Resolver.FrameworkDirectory)), StringComparison.Ordinal);
}
}
}
public string FileName { get { return Path.GetFileName (FullPath); } }