Default Configuration Values

The following shows all of the configuration options currently available within Cake, as well as their default values.

NuGet Download Url

This allows the control of where Cake downloads NuGet packages from when using the addin and tool preprocessor directives. This can be useful when it is necessary to work in an offline mode, where direct access to nuget.org is not available.

Default Value

https://packages.nuget.org/api/v2

Environment Variable Name

NUGET_SOURCE

ini File Contents

[Nuget]
Source=http://myfeed/nuget/

Direct Argument

cake.exe --nuget_source=http://myfeed/nuget/

Roslyn NuGet Download Url

This allows the control of where Cake downloads the required Roslyn NuGet packages. This can be useful when it is necessary to work in an offline mode, where direct access to nuget.org is not available.

Default Value

https://packages.nuget.org/api/v2

Environment Variable Name

CAKE_ROSLYN_NUGETSOURCE

ini File Contents

[Roslyn]
NuGetSource=https://mycustomurl

Direct Argument

cake.exe --roslyn_nugetsource=http://mycustomurl

Tools Path

This allows the configuration of the tools folder which is used by Cake when restoring tools.

Default Value

./tools

Environment Variable Name

CAKE_PATHS_TOOLS

ini File Contents

[Paths]
Tools=./tools

Direct Argument

cake.exe --paths_tools=./tools

Addins Path

This allows the configuration of the Addins folder which is used by Cake when restoring Addins.

Default Value

./tools/Addins

Environment Variable Name

CAKE_PATHS_ADDINS

ini File Contents

[Paths]
Addins=./tools/Addins

Direct Argument

cake.exe --paths_addins=./tools/Addins

Modules Path

This allows the configuration of the Modules folder which is used by Cake when loading custom Modules.

Default Value

./tools/Modules

Environment Variable Name

CAKE_PATHS_MODULES

ini File Contents

[Paths]
Modules=./tools/Modules

Direct Argument

cake.exe --paths_modules=./tools/Modules