Created
February 18, 2020 13:20
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////////// | |
// 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