Skip to content

Commit 1e9b72e

Browse files
tweaks to build script to publish FSharp.DependencyManager.Paket as a nuget package, also publish the dll as a github release artifact.
1 parent efb6869 commit 1e9b72e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

build.fsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,15 @@ Target "NuGet" (fun _ ->
462462
"/p:PackAsTool=true"]
463463
ToolPath = dotnetExePath
464464
})
465+
DotNetCli.Pack (fun c ->
466+
{ c with
467+
Project = "src/FSharp.DependencyManager.Paket/FSharp.DependencyManager.Paket.fsproj"
468+
OutputPath = tempDir
469+
AdditionalArgs =
470+
[ sprintf "/p:Version=%s" release.NugetVersion
471+
sprintf "/p:PackageReleaseNotesFile=%s" releaseNotesPath ]
472+
ToolPath = dotnetExePath
473+
})
465474
)
466475

467476
Target "PublishNuGet" (fun _ ->
@@ -666,10 +675,12 @@ Target "ReleaseGitHub" (fun _ ->
666675
|> createDraft gitOwner gitName release.NugetVersion (release.SemVer.PreRelease <> None) release.Notes
667676
|> uploadFile "./bin/merged/paket.exe"
668677
|> uploadFile "./bin/merged/paket-sha256.txt"
678+
|> uploadFile "./bin/netstandard2.0/FSharp.DependencyManager.Paket.dll"
669679
|> uploadFile "./bin_bootstrapper/net461/paket.bootstrapper.exe"
670680
|> uploadFile ".paket/paket.targets"
671681
|> uploadFile ".paket/Paket.Restore.targets"
672682
|> uploadFile (tempDir </> sprintf "Paket.%s.nupkg" (release.NugetVersion))
683+
|> uploadFile (tempDir </> sprintf "FSharp.DependencyManager.Paket.%s.nupkg" (release.NugetVersion))
673684
|> releaseDraft
674685
|> Async.RunSynchronously
675686
)

src/FSharp.DependencyManager.Paket/FSharp.DependencyManager.Paket.fsproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
</PropertyGroup>
66

7+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
8+
<OutputPath>../../bin/</OutputPath>
9+
</PropertyGroup>
10+
711
<ItemGroup>
812
<Compile Include="ReferenceLoading.PaketHandler.fs" />
913
<Compile Include="PaketDependencyManager.fs" />

0 commit comments

Comments
 (0)