diff --git a/images/macos/provision/core/vsmac.sh b/images/macos/provision/core/vsmac.sh index 9774e486..3be149e2 100644 --- a/images/macos/provision/core/vsmac.sh +++ b/images/macos/provision/core/vsmac.sh @@ -3,6 +3,9 @@ source ~/utils/utils.sh source ~/utils/xamarin-utils.sh VSMAC_VERSION=$(get_toolset_value '.xamarin.vsmac') +if [ VSMAC_VERSION == 'latest' ] + then + VSMAC_VERSION=$(curl https://formulae.brew.sh/api/cask/visual-studio.json 2>/dev/null | jq .version) VSMAC_DOWNLOAD_URL=$(buildVSMacDownloadUrl $VSMAC_VERSION) TMPMOUNT=`/usr/bin/mktemp -d /tmp/visualstudio.XXXX` diff --git a/images/macos/toolsets/toolset-10.15.json b/images/macos/toolsets/toolset-10.15.json index e7b17989..39ee290f 100644 --- a/images/macos/toolsets/toolset-10.15.json +++ b/images/macos/toolsets/toolset-10.15.json @@ -6,7 +6,7 @@ ] }, "xamarin": { - "vsmac": "8.7.7.10", + "vsmac": "latest", "mono-versions": [ "6.12.0.93", "6.10.0.106", "6.8.0.123", "6.6.0.166", "6.4.0.208" ], diff --git a/images/macos/toolsets/toolset-11.0.json b/images/macos/toolsets/toolset-11.0.json index fa7a65a5..b4ca5c82 100644 --- a/images/macos/toolsets/toolset-11.0.json +++ b/images/macos/toolsets/toolset-11.0.json @@ -6,7 +6,7 @@ ] }, "xamarin": { - "vsmac": "8.7.7.10", + "vsmac": "latest", "mono-versions": [ "6.12.0.93" ],