add versionSuffix to nuget pack

This commit is contained in:
alexvaluyskiy 2017-02-03 14:55:26 +02:00
Родитель 13928a8463
Коммит 172c2c85a1
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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"