FAKE - F# Make - A DSL for build tasks and more FAKE

Lookig for older versions of the documentation, pre FAKE v6? See 


CreateProcess Module

Extensions to CreateProcess .

Functions and values

Function or value Description

withToolType toolType c

Full Usage: withToolType toolType c

Returns: CreateProcess<'a>

Ensures the command is run with dotnet or with framework/mono as appropriate.

toolType : ToolType
c : CreateProcess<'a>
Returns: CreateProcess<'a>

 Command.RawCommand("tool", Arguments.OfArgs ["arg1"; "arg2"])
     |> CreateProcess.fromCommand
     |> CreateProcess.withToolType toolType // prepare to execute tool, mono tool, or dotnet localtool.
     |> Proc.run
     |> ignore