[mmp] Use the GetPlatformFrameworkDirectory function to avoid duplicating code. (#8648)

This commit is contained in:
Rolf Bjarne Kvinge 2020-05-25 09:34:22 +02:00 коммит произвёл GitHub
Родитель eb3c1eeb0f
Коммит 641a26e64b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 9 удалений

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

@ -501,15 +501,7 @@ namespace Xamarin.Bundler {
if (App.References.Exists (a => Path.GetFileNameWithoutExtension (a).Equals (root_wo_ext)))
throw new ProductException (23, true, Errors.MM0023, root_wo_ext);
string monoFrameworkDirectory;
if (TargetFramework == TargetFramework.Xamarin_Mac_2_0_Mobile) {
monoFrameworkDirectory = TargetFramework.Identifier;
} else {
monoFrameworkDirectory = "4.5";
}
fx_dir = Path.Combine (MonoDirectory, "lib", "mono", monoFrameworkDirectory);
fx_dir = GetPlatformFrameworkDirectory (App);
if (!Directory.Exists (fx_dir))
throw new ProductException (1403, true, Errors.MM1403, "Directory", fx_dir, TargetFramework);