fix for VSWhere prerelease detection

This commit is contained in:
moljac 2019-10-18 09:54:45 +02:00
Родитель c069254bac
Коммит 195c18f910
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -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"))