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:

enter image description here

perfect!

output running fake.exe .\build.fsx rev=456 (as suggested answer: https://stackoverflow.com/a/26597179/2382536):

starts with

enter image description here

but @ bottom gives correct result:

enter image description here

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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -