I have a cake file with my Tasks defined. I also have a second cake file with some classes defined. In the second file, I would like to reference e.g. Cake.Json, and maybe Cake.Svn. But I cannot figure out how reference them.
How would I do that?
Both addins and utility Cake scripts are references using pre-processor directives.
#addin nuget:?package={NuGet Package Id}&version={NuGet package version}
#addin nuget:?package=Cake.Json&version=3.0.1
#r "Path to assembly / dll"
#r "bin/Cake.Json.dll"
#load "Path to cake file"
#load "scripts/common.cake"
Read more about pre-processor directives at
https://cakebuild.net/docs/fundamentals/preprocessor-directives