public override bool Execute() { //Log.LogWarning("HEY!!!! " + SourceFiles.Length); if (!System.IO.Directory.Exists(OutputDirectory.ItemSpec)) { System.IO.Directory.CreateDirectory(OutputDirectory.ItemSpec); } /*foreach (ITaskItem sourceFile in SourceFiles) * { * Log.LogMessage(MessageImportance.High, "Assembling file '" + sourceFile.ItemSpec + "'..."); * bool success = false; * string resultFilename = Assemble(sourceFile.GetMetadata("FullPath"), out success); * if (success) * { * Log.LogMessage(MessageImportance.High, sourceFile.ItemSpec + " -> " + resultFilename); * } * else * { * * } * }*/ bool success = false; /*List<string> sourceFiles = new List<string>(); * foreach (ITaskItem task in SourceFiles) * { * sourceFiles.Add(task.GetMetadata("FullPath")); * } * string resultFilename = Assemble(sourceFiles.ToArray(), out success);*/ string resultFilename = Assemble(new string[] { SourceDirectory.GetMetadata("FullPath") }, out success); if (success) { Log.LogMessage(MessageImportance.High, " -> " + resultFilename); } else { } return(!Log.HasLoggedErrors); }