File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,19 @@ let dotnetRestore _ =
269
269
)
270
270
|> Seq.iter ( retryIfInCI 10 )
271
271
272
+ let dotnetToolRestore _ =
273
+ let result =
274
+ fun () ->
275
+ DotNet.exec
276
+ id
277
+ " tool"
278
+ " restore"
279
+ |> ( retryIfInCI 10 )
280
+
281
+
282
+ if not result.OK then
283
+ failwithf " Failed to restore .NET tools: %A " result.Errors
284
+
272
285
let updateChangelog ctx =
273
286
latestEntry <-
274
287
if not <| isPublishToGitHub ctx then
@@ -614,6 +627,7 @@ let initTargets (ctx : Context.FakeExecutionContext) =
614
627
615
628
Target.create " Clean" clean
616
629
Target.create " DotnetRestore" dotnetRestore
630
+ Target.create " DotnetToolRestore" dotnetToolRestore
617
631
Target.create " UpdateChangelog" updateChangelog
618
632
Target.createBuildFailure " RevertChangelog" revertChangelog // Do NOT put this in the dependency chain
619
633
Target.createFinal " DeleteChangelogBackupFile" deleteChangelogBackupFile // Do NOT put this in the dependency chain
@@ -696,6 +710,11 @@ let initTargets (ctx : Context.FakeExecutionContext) =
696
710
697
711
" DotnetRestore" ==>! " WatchTests"
698
712
713
+ //"DotnetToolRestore" ?=>! "DotnetRestore"
714
+ " DotnetToolRestore" ==>! " BuildDocs"
715
+ " DotnetToolRestore" ?=>! " CheckFormatCode"
716
+ " DotnetToolRestore" ?=>! " FormatCode"
717
+
699
718
//-----------------------------------------------------------------------------
700
719
// Target Start
701
720
//-----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments