Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

fix for VSWhere prerelease detection #222

Open
wants to merge 1 commit into
base: AndroidX
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be specified from a cake argument and default to false? Is the default behaviour of vswhere to return stable first?

});
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"))
Expand Down