Skip to content

Commit

Permalink
ensure CLI params are passed to fake script
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis committed Sep 15, 2021
1 parent 3c781cb commit 7be2a9a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
#r "nuget: Fake.Tools.Git ,5.20.4"
#r "nuget: Fake.Api.Github ,5.20.4"

#if !FAKE
Fake.Core.Context.FakeExecutionContext.Create false __SOURCE_FILE__ []
|> Fake.Core.Context.RuntimeContext.Fake
|> Fake.Core.Context.setExecutionContext
#endif

open Fake.Core
open Fake.Core.TargetOperators
open Fake.DotNet
Expand All @@ -27,6 +21,15 @@ open Fake.Tools
open Fake.Api
open System

#if !FAKE
Environment.GetCommandLineArgs()
|> Array.skip 2
|> Array.toList
|> Fake.Core.Context.FakeExecutionContext.Create false __SOURCE_FILE__
|> Fake.Core.Context.RuntimeContext.Fake
|> Fake.Core.Context.setExecutionContext
#endif

// --------------------------------------------------------------------------------------
// START TODO: Provide project-specific details below
// --------------------------------------------------------------------------------------
Expand Down

0 comments on commit 7be2a9a

Please sign in to comment.