Specifying build parameters to FAKE -
i asking update date answer answered question: can pass parameter f# fake build script?
here build.fsx
let revisionnumber = getbuildparamordefault "rev" "123" target "log" (fun _ -> trace ("revision number: " + revisionnumber) ) runtargetordefault "log"
output running fake.exe .\build.fsx
:
perfect!
output running fake.exe .\build.fsx rev=456
(as suggested answer: https://stackoverflow.com/a/26597179/2382536):
starts with
but @ bottom gives correct result:
what format need pass parameters in rid of warning message?
passing parameters done using --envvar
parameter. until can add parameters in way did after build target not anymore. believe changed in order not confuse build parameters (optional) build target name.
so, try this:
fake build.fsx push --envvar rev 456
Comments
Post a Comment