This guide will demonstrate how to install tool executables to make sure they are discovered by your build script.
The recommended way of using Cake is by using the bootstrapper script which you can read more about in the Setting up a new project.
When using the bootstrapper script you can simply add the NuGet package to the
packages.config file in the
Cake extends the C# language with custom pre-processor directives, and we've added one
to automatically download a tool from NuGet and install it in the
To download the xunit.runner.console package
as part of executing your build script, simply use the
For more information see preprocessor directives
If you want to install a tool that's not available via NuGet or if you prefer to store the tool locally, you want to take a look at the tool resolution conventions.
- Error handling
- Finally block
- Setup and teardown
- Running targets
- Arguments and environment vars
- Script aliases
- Preprocessor directives
- Default Configuration Values
- Installing tools
- Tool resolution