Skip to content

Instantly share code, notes, and snippets.

@SjB
Last active September 23, 2015 04:16
Show Gist options
  • Save SjB/d7e68f0e07afd3ed8e34 to your computer and use it in GitHub Desktop.
Save SjB/d7e68f0e07afd3ed8e34 to your computer and use it in GitHub Desktop.
Run a external CakeScript with the same arguments
Action<FilePath, string> CakeScript = delegate(FilePath script, string tgt) {
var args = new Dictionary<string,string>() {
{"target", tgt},
{"configuration", configuration},
{"platform", platform}
};
CakeExecuteScript(File("./Attenuator/build.cake"), new CakeSettings { Arguments = args });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment