Is there a way to invoke InstallTool depending on the targets that will be run? #4317
-
Some builds require some expensive to acquire tools only for some targets. It would be nice to have a way to filter that. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
While there is no built-in feature for it, it can be done. Depending on the complexity of things, the "easy" way would be to try to split your script into multiple files, each file requiring only the tools needed for the tasks in that file. The "main" script file would then call the specific other files using Alternatively, it is also possible to add tools fully dynamically: The idea here is, essentially, not to directly add the
|
Beta Was this translation helpful? Give feedback.
-
In Cake Frosting the
|
Beta Was this translation helpful? Give feedback.
In Cake Frosting the
IToolInstaller
service can be used in a task: