From d17ccc3d31baa03759432e6664d57c71e094862c Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Thu, 27 Oct 2022 14:53:39 -0500 Subject: [PATCH] [build] fix 8.0.100-alpha.1 version band MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Local builds were failing with: make prepare all ... build-tools/create-packs/Directory.Build.targets(280,5): error MSB3073: The command ""…/xamarin-android/bin/Debug/dotnet/dotnet" workload install android-deps --configfile "…/xamarin-android/NuGet.config" --skip-manifest-update --verbosity diag" exited with code 1. `android-deps` is our workaround for installing the "abstract" Mono workload that we need to build against. Since we are "inventing" this workload, there is not a way for the .NET workload system to fall back to older version bands. And so: bin/Debug/lib/sdk-manifests/8.0.100/android.deps.workload/WorkloadManifest.json Doesn't work because the version band is *actually* 8.0.100-alpha.1. Update our logic in `eng/Versions.props` to support `alpha` version bands. --- eng/Versions.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/Versions.props b/eng/Versions.props index e524878e142..40388bf716d 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -13,7 +13,7 @@ $([System.Text.RegularExpressions.Regex]::Match($(MicrosoftDotnetSdkInternalPackageVersion), `^\d+\.\d+\.\d`))00 - $(DotNetPreviewVersionBand)$([System.Text.RegularExpressions.Regex]::Match($(MicrosoftDotnetSdkInternalPackageVersion), `\-(preview|rc).\d+`)) + $(DotNetPreviewVersionBand)$([System.Text.RegularExpressions.Regex]::Match($(MicrosoftDotnetSdkInternalPackageVersion), `\-(preview|rc|alpha).\d+`)) $(DotNetPreviewVersionBand) 8.0.100