From f5ee55781285508a40ca3fef4353bb24e8e122a8 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Tue, 9 Dec 2025 09:20:01 +0100 Subject: [PATCH] fix --- Pilz/AppVersion.cs | 8 ++++---- Pilz/Pilz.csproj | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Pilz/AppVersion.cs b/Pilz/AppVersion.cs index 162321f..1b225e8 100644 --- a/Pilz/AppVersion.cs +++ b/Pilz/AppVersion.cs @@ -123,14 +123,14 @@ public class AppVersion(Version version, int build, AppChannel channel) : ICompa { versionStr = matchTPN.Groups["v"].Value; channelStr = matchTPN.Groups["c"].Value; - buildStr = matchTPN.Groups["b"].Value; + buildStr = matchTPN.Groups["n"].Value; } // 1.14.2-beta.1 else if (Regex.Match(input, @"(?[0-9.]+)-(?[a-zA-Z]+)(?\d+)$") is { Success: true } matchTN) { versionStr = matchTN.Groups["v"].Value; channelStr = matchTN.Groups["c"].Value; - buildStr = matchTN.Groups["b"].Value; + buildStr = matchTN.Groups["n"].Value; } // 1.14.2-beta else if (Regex.Match(input, @"(?[0-9.]+)-(?[a-zA-Z]+)$") is { Success: true } matchT) @@ -144,7 +144,7 @@ public class AppVersion(Version version, int build, AppChannel channel) : ICompa { versionStr = matchDN.Groups["v"].Value; channelStr = matchDN.Groups["c"].Value; - buildStr = matchDN.Groups["b"].Value; + buildStr = matchDN.Groups["n"].Value; } // 1.14.2 Beta else if (Regex.Match(input, @"(?[0-9.]+)-(?[a-zA-Z]+)$") is { Success: true } matchD) @@ -169,7 +169,7 @@ public class AppVersion(Version version, int build, AppChannel channel) : ICompa throw new FormatException("Bad version format: " + versionStr); // Parse channel - if (!Enum.TryParse(channelStr, out AppChannel channel)) + if (!Enum.TryParse(channelStr, true, out AppChannel channel)) channel = AppChannel.Stable; // Parse build diff --git a/Pilz/Pilz.csproj b/Pilz/Pilz.csproj index 70a73ea..2b4cb7b 100644 --- a/Pilz/Pilz.csproj +++ b/Pilz/Pilz.csproj @@ -5,7 +5,7 @@ latest enable annotations - 2.7.0 + 2.7.1