Skip to content

Instantly share code, notes, and snippets.

@gep13
Created February 18, 2020 13:20
Show Gist options
  • Save gep13/92774c188583dc345ec7293ca7dbd9e2 to your computer and use it in GitHub Desktop.
Save gep13/92774c188583dc345ec7293ca7dbd9e2 to your computer and use it in GitHub Desktop.
Shows an example of referring to a target as a symbol, not as a string
///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
///////////////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
///////////////////////////////////////////////////////////////////////////////
// TASKS
///////////////////////////////////////////////////////////////////////////////
var dependentTask = Task("dependentTask")
.Does(() =>
{
Information("Dependent Task");
});
Task("Default")
.IsDependentOn(dependentTask)
.Does(() => {
Information("Default Task");
});
RunTarget(target);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment