예제 #1
0
        /// <summary>
        /// Performs the "analysis".
        /// </summary>
        ///
        /// <returns>
        /// <see langword="true"/> if there were no errors; <see langword="false"/> otherwise.
        /// </returns>
        public override bool Execute()
        {
            var resolvedFiles = new List <ITaskItem>();

            Log.LogMessage(MessageImportance.Low, "Resolving dependencies...");
            foreach (ITaskItem item in EnumerableExtensions.Compose(Assemblies, AssemblyFiles))
            {
                // TODO: we may want to check if the associated file exists, first
                Log.LogMessage(MessageImportance.Low, "Adding {0}...", item.ItemSpec);
                resolvedFiles.Add(item);
            }

            ResolvedFiles = resolvedFiles.ToArray();
            return(!Log.HasLoggedErrors);
        }