Skip to content

Commit 8d39e5f

Browse files
author
Andrii Chebukin
committed
Fixed passing command line parameters to the build project
1 parent 2e2d18f commit 8d39e5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/Program.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ Path.Combine(__SOURCE_DIRECTORY__, "..")
1717
|> Path.GetFullPath
1818
|> Directory.SetCurrentDirectory
1919

20-
let execContext = Fake.Core.Context.FakeExecutionContext.Create false "build.fsx" [ ]
20+
let execContext =
21+
let args = Environment.GetCommandLineArgs() |> Seq.skip 1 |> Seq.toList
22+
Fake.Core.Context.FakeExecutionContext.Create false "build.fsx" args
2123
execContext
2224
|> Fake.Core.Context.RuntimeContext.Fake
2325
|> Fake.Core.Context.setExecutionContext

0 commit comments

Comments
 (0)