Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit d411aee

Browse files
committed
[Xamarin.Build.Download] Support pre-release package ids.
1 parent 9a5806c commit d411aee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Util/Xamarin.Build.Download/source/Xamarin.Build.Download/DownloadUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ public static string GetCacheDir (string overrideCacheDir = null)
197197
//VERSION:
198198
// * components separated by periods
199199
// * each component must consist of letters and numbers
200-
//
200+
// * optional hyphen and pre-release id (eg: '-beta01')
201201
static readonly Regex idRegex = new Regex (
202-
@"[A-Za-z]+[A-Za-z\d\._]*[A-Za-z\d]+-[A-Za-z\d]+(\.[A-Za-z\d]+)*(/[A-Za-z]+[A-Za-z\d\._]*[A-Za-z\d]+)?"
202+
@"[A-Za-z]+[A-Za-z\d\._]*[A-Za-z\d]+-[A-Za-z\d]+(\.[A-Za-z\d]+)*(/[A-Za-z]+[A-Za-z\d\._]*[A-Za-z\d]+)?(-\w*)?"
203203
,
204204
RegexOptions.Compiled
205205
);

Util/Xamarin.Build.Download/source/Xamarin.Build.Download/Xamarin.Build.Download.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<PackageId>Xamarin.Build.Download</PackageId>
1010
<Title>Xamarin Build-time Download Support</Title>
11-
<PackageVersion>0.11.2</PackageVersion>
11+
<PackageVersion>0.11.3</PackageVersion>
1212
<Authors>Microsoft</Authors>
1313
<Owners>Microsoft</Owners>
1414
<PackageProjectUrl>https://go.microsoft.com/fwlink/?linkid=865061</PackageProjectUrl>

0 commit comments

Comments
 (0)