public static IBuildTarget FindBuildTargetByName(string name) { if (string.IsNullOrEmpty(name)) return null; foreach (IBuildTarget target in _buildTargets) { if (target.Name == name) { return target; } } return null; }