From 7cd0dab9d93eb1c8e2cd06fd7e112bb846873dbe Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 2 Feb 2021 08:46:38 +0100 Subject: [PATCH] [msbuild] Fix computing the frameworks directory for Mac Catalyst. (#10557) This is part 2 of making framework-test build on Mac Catalyst. Contributes to https://github.com/xamarin/xamarin-macios/issues/10440. --- msbuild/Xamarin.Shared/Xamarin.Shared.targets | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/msbuild/Xamarin.Shared/Xamarin.Shared.targets b/msbuild/Xamarin.Shared/Xamarin.Shared.targets index 71141066d7ba..560d925dd180 100644 --- a/msbuild/Xamarin.Shared/Xamarin.Shared.targets +++ b/msbuild/Xamarin.Shared/Xamarin.Shared.targets @@ -973,8 +973,9 @@ Copyright (C) 2018 Microsoft. All rights reserved. - <_FrameworksDirectory Condition="'$(_PlatformName)' != 'macOS'">$(_AppBundlePath)/Frameworks - <_FrameworksDirectory Condition="'$(_PlatformName)' == 'macOS'">$(_AppBundlePath)/Contents/Frameworks + <_FrameworksDirectory Condition="'$(_FrameworksDirectory)' == '' And '$(_IsMacCatalyst)' == 'true'">$(_AppBundlePath)/Contents/Frameworks + <_FrameworksDirectory Condition="'$(_FrameworksDirectory)' == '' And '$(_PlatformName)' != 'macOS'">$(_AppBundlePath)/Frameworks + <_FrameworksDirectory Condition="'$(_FrameworksDirectory)' == '' And '$(_PlatformName)' == 'macOS'">$(_AppBundlePath)/Contents/Frameworks