Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 082bba5

Browse files
committed
Merge branch 'dev'
2 parents 83f3d74 + a097f6f commit 082bba5

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

build.fsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,19 @@ Target "RestorePackages" (fun _ ->
6969
NoCache = false })
7070
)
7171

72+
Target "AssemblyInfo" (fun _ ->
73+
XmlPokeInnerText "./src/common.props" "//Project/PropertyGroup/VersionPrefix" releaseNotes.AssemblyVersion
74+
XmlPokeInnerText "./src/common.props" "//Project/PropertyGroup/PackageReleaseNotes" (releaseNotes.Notes |> String.concat "\n")
75+
)
76+
7277
Target "Build" (fun _ ->
78+
let additionalArgs = if versionSuffix.Length > 0 then [sprintf "/p:VersionSuffix=%s" versionSuffix] else []
7379
DotNetCli.Build
7480
(fun p ->
7581
{ p with
7682
Project = solutionFile
77-
Configuration = configuration })
83+
Configuration = configuration
84+
AdditionalArgs = additionalArgs})
7885
)
7986

8087
//--------------------------------------------------------------------------------
@@ -224,6 +231,7 @@ let overrideVersionSuffix (project:string) =
224231
match project with
225232
| _ -> versionSuffix // add additional matches to publish different versions for different projects in solution
226233
Target "CreateNuget" (fun _ ->
234+
CreateDir outputNuGet // need this to stop Azure pipelines copy stage from error-ing out
227235
let projects = !! "src/**/*.csproj"
228236
-- "src/**/*Tests.csproj" // Don't publish unit tests
229237
-- "src/**/*Tests*.csproj"
@@ -234,9 +242,9 @@ Target "CreateNuget" (fun _ ->
234242
{ p with
235243
Project = project
236244
Configuration = configuration
237-
AdditionalArgs = ["--include-symbols --no-build"]
238-
VersionSuffix = overrideVersionSuffix project
239-
OutputPath = outputNuGet })
245+
AdditionalArgs = ["--include-symbols"]
246+
VersionSuffix = versionSuffix
247+
OutputPath = "\"" + outputNuGet + "\"" })
240248

241249
projects |> Seq.iter (runSingleProject)
242250
)
@@ -315,7 +323,7 @@ Target "RunTestsFull" DoNothing
315323
Target "RunTestsNetCoreFull" DoNothing
316324

317325
// build dependencies
318-
"Clean" ==> "RestorePackages" ==> "Build" ==> "BuildRelease"
326+
"Clean" ==> "RestorePackages" ==> "AssemblyInfo" ==> "Build" ==> "BuildRelease"
319327

320328
// tests dependencies
321329
"Build" ==> "RunTests"

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Param(
3030
)
3131

3232
$FakeVersion = "4.63.0"
33-
$NugetVersion = "4.3.0";
33+
$NugetVersion = "5.8.0";
3434
$NugetUrl = "https://dist.nuget.org/win-x86-commandline/v$NugetVersion/nuget.exe"
3535

3636
# Make sure tools folder exists

src/Akka.Persistence.MySql.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{F945729D
2121
..\build.cmd = ..\build.cmd
2222
..\build.fsx = ..\build.fsx
2323
..\build.sh = ..\build.sh
24+
..\build.ps1 = ..\build.ps1
2425
EndProjectSection
2526
EndProject
2627
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{EEDB424A-4F28-4171-99D1-08C8DA880BE6}"

0 commit comments

Comments
 (0)