From 195c18f910b90dcdfca1aecc5416d82a7f6c8dba Mon Sep 17 00:00:00 2001 From: moljac Date: Fri, 18 Oct 2019 09:54:45 +0200 Subject: [PATCH] fix for VSWhere prerelease detection --- build.cake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.cake b/build.cake index fe620e94..08fbdfc2 100644 --- a/build.cake +++ b/build.cake @@ -24,7 +24,11 @@ var ANDROID_SDK_BASE_VERSION = "v1.0"; var ANDROID_SDK_VERSION = "v9.0"; if (string.IsNullOrEmpty(XAMARIN_ANDROID_PATH)) { if (IsRunningOnWindows()) { - var vsInstallPath = VSWhereLatest(new VSWhereLatestSettings { Requires = "Component.Xamarin" }); + var vsInstallPath = VSWhereLatest(new VSWhereLatestSettings + { + Requires = "Component.Xamarin", + IncludePrerelease = true + }); XAMARIN_ANDROID_PATH = vsInstallPath.Combine("Common7/IDE/ReferenceAssemblies/Microsoft/Framework/MonoAndroid").FullPath; } else { if (DirectoryExists("/Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/xamarin.android/xbuild-frameworks/MonoAndroid"))