public override bool Execute() { if (Defines == null || !Defines.Any()) { Log.LogMessage("define empty"); return(true); } var retarg = string.Join(" ", Defines.Select(x => string.Format($"-D\"{x.ItemSpec}={x.GetMetadata("Value")}\""))); GeneratedDefineArg = new TaskItem(retarg); Log.LogMessage("define args = `{0}`", retarg); return(true); }