From b66031c2b639792ba677e9f03ed12236f7ebd9a2 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Sat, 4 Jan 2020 21:18:35 +0800 Subject: [PATCH] Fix build script --- build/BuildScript.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build/BuildScript.cs b/build/BuildScript.cs index ca6b90b..e9381bf 100644 --- a/build/BuildScript.cs +++ b/build/BuildScript.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using FlubuCore.Context; using FlubuCore.IO; using FlubuCore.Scripting; @@ -66,8 +65,8 @@ namespace BuildScript .NoBuild() .Project(projectFile) .IncludeSymbols() - .VersionSufix(BuildVersion.Suffix) - .OutputDirectory(ArtifactsDir)); + .When(() => !string.IsNullOrEmpty(BuildVersion.Suffix), t => t.VersionSufix(BuildVersion.Suffix) + .OutputDirectory(ArtifactsDir); }); context.CreateTarget("Default")