Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. var target = Argument("target", "B");
  2.  
  3. var dataList = new List<string>();
  4.  
  5. Task("A")
  6. .Does(() =>
  7. {
  8. Information(string.Format("A - List has {0} entries", dataList.Count));
  9. dataList.AddRange(new string[] {"rod", "jane", "freddy"});
  10. Information(string.Format("A - List has {0} entries", dataList.Count));
  11. });
  12.  
  13. Task("B")
  14. .IsDependentOn("A")
  15. .DoesForEach(dataList, (s) => Information(string.Format(">>> {0}", s)));
  16.  
  17. RunTarget(target);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement