From 172c2c85a1cce7cb14ff4101f073ea785d7f0298 Mon Sep 17 00:00:00 2001 From: alexvaluyskiy Date: Fri, 3 Feb 2017 14:55:26 +0200 Subject: [PATCH] add versionSuffix to nuget pack --- build.fsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.fsx b/build.fsx index 82b34d2..12e5e5b 100644 --- a/build.fsx +++ b/build.fsx @@ -141,12 +141,15 @@ Target "NBench" (fun _ -> //-------------------------------------------------------------------------------- Target "CreateNuget" (fun _ -> + let versionSuffix = getBuildParamOrDefault "versionsuffix" "" + DotNetCli.Pack (fun p -> { p with Project = "./Hyperion/Hyperion.csproj" Configuration = configuration AdditionalArgs = ["--include-symbols"] + VersionSuffix = versionSuffix OutputPath = outputNuGet }) ) @@ -208,6 +211,8 @@ Target "HelpNuget" <| fun _ -> "Examples:" " build Nuget Build nuget packages to the build/nuget folder" "" + " build Nuget versionsuffix=beta1 Build nuget packages with the custom version suffix" + "" " build Nuget nugetkey=123 Build and publish to nuget.org and symbolsource.org" "" " build Nuget nugetprerelease=dev nugetkey=123 nugetpublishurl=http://abcsymbolspublishurl=http://xyz"