我有一个定义了“任务”的蛋糕文件。 我还有第二个蛋糕文件,其中定义了一些类。 在第二个文件中,我想参考例如Cake.Json,也许还有Cake.Svn。但是我不知道如何引用它们。
我该怎么做?
答案 0 :(得分:0)
插件和实用工具Cake脚本都是使用预处理程序指令的引用。
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, "https://trekfederation.com", "https://trekfederation.com/newlocation");
UPDATE wp_posts SET post_content = REPLACE (post_content, "https://trekfederation.com", "https://trekfederation.com/newlocation");
UPDATE wp_posts SET guid = REPLACE (guid, "https://trekfederation.com", "https://trekfederation.com/newlocation");
UPDATE wp_options SET option_value = REPLACE(option_value, "https://trekfederation.com", "https://trekfederation.com/newlocation");
#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"
有关更多信息,请参见
https://cakebuild.net/docs/fundamentals/preprocessor-directives