f# - Shell.Exec in FAKE -
i found function exec
here http://fsharp.github.io/fake/apidocs/fake-processhelper-shell.html.
target "updatetools" (fun _ -> exec "cmd" )
but keep getting error, when try run it: "the value or constructor 'exec' not defined".
i'm new fake , have not used f#, forgive me if should obvious.
can tell me why api not accessible that?
the documentation documenting class shell. means, need call like:
target "updatetools" (fun _ -> ignore(shell.exec "cmd") )
or, if need work error code further:
target "updatetools" (fun _ -> let errorcode = shell.exec "cmd" //do error code () )
hope bit clearer now.
Comments
Post a Comment