From 250d219cd6ed95ffa0b903c27d5296e83ccd6917 Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Sat, 24 Feb 2018 11:16:35 +0100 Subject: [PATCH] Build: fix version-suffix generation in case of full releases --- build/build-framework.fsx | 2 +- src/Data/Matlab/Matlab.csproj | 2 +- src/Data/Text/Text.csproj | 2 +- src/FSharp/FSharp.fsproj | 2 +- src/Numerics/Numerics.csproj | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/build-framework.fsx b/build/build-framework.fsx index 9d0770cd..122fbc36 100644 --- a/build/build-framework.fsx +++ b/build/build-framework.fsx @@ -140,7 +140,7 @@ let patchVersionInResource path (release:Release) = let patchVersionInProjectFile path (release:Release) = let semverSplit = release.PackageVersion.IndexOf('-') let prefix = if semverSplit <= 0 then release.PackageVersion else release.PackageVersion.Substring(0, semverSplit) - let suffix = if semverSplit <= 0 then release.PackageVersion else release.PackageVersion.Substring(semverSplit+1) + let suffix = if semverSplit <= 0 then "" else release.PackageVersion.Substring(semverSplit+1) ReplaceInFile (regex_replace """\.*\""" (sprintf """%s""" release.PackageVersion) >> regex_replace """\.*\""" (sprintf """%s""" release.PackageVersion) diff --git a/src/Data/Matlab/Matlab.csproj b/src/Data/Matlab/Matlab.csproj index ba255db9..68aaf5a5 100644 --- a/src/Data/Matlab/Matlab.csproj +++ b/src/Data/Matlab/Matlab.csproj @@ -9,7 +9,7 @@ true MathNet.Numerics.Data.Matlab 4.0.0 - 4.0.0 + 4.0.0 4.0.0 4.0.0.0 diff --git a/src/Data/Text/Text.csproj b/src/Data/Text/Text.csproj index 68480217..e2a7033a 100644 --- a/src/Data/Text/Text.csproj +++ b/src/Data/Text/Text.csproj @@ -9,7 +9,7 @@ true MathNet.Numerics.Data.Text 4.0.0 - 4.0.0 + 4.0.0 4.0.0 4.0.0.0 diff --git a/src/FSharp/FSharp.fsproj b/src/FSharp/FSharp.fsproj index 7207bb12..95f662c9 100644 --- a/src/FSharp/FSharp.fsproj +++ b/src/FSharp/FSharp.fsproj @@ -9,7 +9,7 @@ true MathNet.Numerics.FSharp 4.3.0 - 4.3.0 + 4.3.0 4.3.0 4.3.0.0 diff --git a/src/Numerics/Numerics.csproj b/src/Numerics/Numerics.csproj index 3998575b..76d4c682 100644 --- a/src/Numerics/Numerics.csproj +++ b/src/Numerics/Numerics.csproj @@ -9,7 +9,7 @@ true MathNet.Numerics 4.3.0 - 4.3.0 + 4.3.0 4.3.0 4.3.0.0