From 1917cea836c35efc189264d659633bf2af253c19 Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Wed, 5 Jul 2023 13:54:14 +0300 Subject: [PATCH] fix - Building strings now builds build metadata part correctly rrectlyString builder for SemVer classes now builds a SemVer 2.0 compliant string correctly. --- The string builder used to incorrectly append the "-" sign instead of the "+" sign for the build metadata string for provided versions. Now, it uses the latter sign for build metadata. Thus, builds a compliant version string. --- Type: fix Breaking: False Doc Required: False Part: 1/1 --- SemanVer/Instance/SemVer.cs | 2 +- SemanVer/SemanVer.csproj | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SemanVer/Instance/SemVer.cs b/SemanVer/Instance/SemVer.cs index 202e1a5..b3e69c3 100644 --- a/SemanVer/Instance/SemVer.cs +++ b/SemanVer/Instance/SemVer.cs @@ -133,7 +133,7 @@ public override string ToString() { return $"{MajorVersion}.{MinorVersion}.{PatchVersion}" + (!string.IsNullOrWhiteSpace(PreReleaseInfo) ? $"-{PreReleaseInfo}" : "") + - (!string.IsNullOrWhiteSpace(BuildMetadata) ? $"-{BuildMetadata}" : ""); + (!string.IsNullOrWhiteSpace(BuildMetadata) ? $"+{BuildMetadata}" : ""); } /// diff --git a/SemanVer/SemanVer.csproj b/SemanVer/SemanVer.csproj index 9508690..4f69b16 100644 --- a/SemanVer/SemanVer.csproj +++ b/SemanVer/SemanVer.csproj @@ -5,7 +5,7 @@ SemanVer Semantic Version 2.0 parser for .NET Semantic Version 2.0 parser for .NET - 1.0.0 + 1.0.0.1 Aptivi portable SemanVer @@ -22,8 +22,8 @@ MIT True OfficialAppIcon-SemanVer-512.png - 1.0.0 - 1.0.0 + 1.0.0.1 + 1.0.0.1 latest