AppendTargetNames( Bam.Core.StringArray variableNames) { foreach (var target in this.Targets) { var name = target.VariableName; if (null != name) { variableNames.AddUnique("$(" + name + ")"); } else { variableNames.AddUnique(target.Path.Parse()); } } }