@@ -18,6 +18,13 @@ let outputTests = output @@ "tests"
1818let outputBinaries = output @@ " binaries"
1919let outputNuGet = output @@ " nuget"
2020
21+ let buildNumber = environVarOrDefault " BUILD_NUMBER" " 0"
22+ let preReleaseVersionSuffix = " beta" + ( if ( not ( buildNumber = " 0" )) then ( buildNumber) else " " )
23+ let versionSuffix =
24+ match ( getBuildParam " nugetprerelease" ) with
25+ | " dev" -> preReleaseVersionSuffix
26+ | _ -> " "
27+
2128Target " Clean" ( fun _ ->
2229 CleanDir output
2330 CleanDir outputTests
@@ -50,23 +57,14 @@ Target "Build" (fun _ ->
5057//--------------------------------------------------------------------------------
5158
5259Target " CreateNuget" ( fun _ ->
53- let envBuildNumber = environVarOrDefault " APPVEYOR_BUILD_NUMBER" " 0"
54- let branch = environVarOrDefault " APPVEYOR_REPO_BRANCH" " "
55- let versionSuffix = if branch.Equals( " dev" ) then ( sprintf " beta-%s " envBuildNumber) else " "
56-
57- let projects = !! " ./**/Akka.Logger.Serilog.csproj"
58-
59- let runSingleProject project =
60- DotNetCli.Pack
61- ( fun p ->
62- { p with
63- Project = project
64- Configuration = configuration
65- AdditionalArgs = [ " --include-symbols" ]
66- VersionSuffix = versionSuffix
67- OutputPath = outputNuGet })
68-
69- projects |> Seq.iter ( runSingleProject)
60+ DotNetCli.Pack
61+ ( fun p ->
62+ { p with
63+ Project = " ./**/Akka.Logger.Serilog.csproj"
64+ Configuration = configuration
65+ AdditionalArgs = [ " --include-symbols" ]
66+ VersionSuffix = versionSuffix
67+ OutputPath = outputNuGet })
7068)
7169
7270//--------------------------------------------------------------------------------
0 commit comments