Skip to content

Commit 8b250f5

Browse files
committed
build.fsx: simplify nuget pre-release version gen
To have one less file in the root folder of the repo.
1 parent 1347689 commit 8b250f5

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

build.fsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#r "nuget: Fake.DotNet.MsBuild"
1616
#r "nuget: Fake.Api.GitHub"
1717

18+
#r "nuget: Fsdk, Version=0.6.0--date20231213-0703.git-d7a5962"
19+
1820
#if FAKE
1921
#load ".fake/build.fsx/intellisense.fsx"
2022
#else
@@ -113,19 +115,7 @@ let nugetVersion =
113115
PreRelease = None }
114116
let bumpedBaseVersion = string bumped
115117

116-
let nugetPreRelease = Path.Combine(rootDir.FullName, "nugetPreRelease.fsx")
117-
let procResult =
118-
CreateProcess.fromRawCommand
119-
"dotnet"
120-
[
121-
"fsi"
122-
nugetPreRelease
123-
bumpedBaseVersion
124-
]
125-
|> CreateProcess.redirectOutput
126-
|> CreateProcess.ensureExitCode
127-
|> Proc.run
128-
procResult.Result.Output.Trim()
118+
Fsdk.Network.GetNugetPrereleaseVersionFromBaseVersion bumpedBaseVersion
129119

130120
let PackageReleaseNotes baseProps =
131121
if isTag then

nugetPreRelease.fsx

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)