Skip to content

Commit c20689a

Browse files
authored
Add ToolType to Paket.push in build.fsx (#14)
For me the provided script didn't work, I had to add the ToolType to use paket as a locally installed tool.
1 parent cc88289 commit c20689a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Content/build.fsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Target.create "Push" (fun _ ->
172172
match getBuildParam "nuget-key" with
173173
| s when not (isNullOrWhiteSpace s) -> s
174174
| _ -> UserInput.getUserPassword "NuGet Key: "
175-
Paket.push (fun p -> { p with WorkingDir = nugetDir; ApiKey = key }))
175+
Paket.push (fun p -> { p with WorkingDir = nugetDir; ApiKey = key; ToolType = ToolType.CreateLocalTool() }))
176176

177177
// --------------------------------------------------------------------------------------
178178
// Build order

build.fsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Target.create "Push" (fun _ ->
9090
match getBuildParam "nuget-key" with
9191
| s when not (isNullOrWhiteSpace s) -> s
9292
| _ -> UserInput.getUserPassword "NuGet Key: "
93-
Paket.push (fun p -> { p with WorkingDir = nupkgDir; ApiKey = key }))
93+
Paket.push (fun p -> { p with WorkingDir = nupkgDir; ApiKey = key; ToolType = ToolType.CreateLocalTool() }))
9494

9595
Target.create "Release" DoNothing
9696

@@ -100,4 +100,4 @@ Target.create "Release" DoNothing
100100
==> "Push"
101101
==> "Release"
102102

103-
Target.runOrDefault "Pack"
103+
Target.runOrDefault "Pack"

0 commit comments

Comments
 (0)