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

Commit 35c1e15

Browse files
committed
Allow prerelease versions in allpackages.targets
1 parent 69167f0 commit 35c1e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Task("nuget")
126126
if (nupkg.FullPath.Contains(".Wear."))
127127
continue;
128128
var filename = nupkg.GetFilenameWithoutExtension();
129-
var match = Regex.Match(filename.ToString(), @"(.+?)\.([\.\d+]+)");
129+
var match = Regex.Match(filename.ToString(), @"(.+?)\.(\d+[\.0-9\-a-zA-Z]+)");
130130
itemGroup.Add(new XElement(xmlns + "PackageReference",
131131
new XAttribute("Include", match.Groups[1]),
132132
new XAttribute("Version", match.Groups[2])));

0 commit comments

Comments
 (0)