FAKE patterns to separate target build order from dependencies

No, there is no operator for this at the moment. You might want to create a pull request with a new operator.

We also have a prototype implementation for a future target dependency runtime. You can also try to add a new operator there.


I'm a bit late to the party.... But I've recently run into this kind of requirement myself.

I finally settled on the following:

  • All tasks are independent
  • Create multiple end state targets that define different dependencies.

In your case that would leave you with

Target "Clean" DoNothing
Target "Work" DoNothing
Target "Build" (fun _ ->
    Run "Work"
)
Target "Rebuild" (fun _ ->
    "Clean"
        ==> "Work"

    Run "Work"
)