Пример #1
0
        public static string ReadItemsAsString(this ErgonProjectInstance executedProject, string itemType)
        {
            var pooledBuilder = PooledStringBuilder.GetInstance();
            var builder       = pooledBuilder.Builder;

            foreach (var item in executedProject.GetItems(itemType))
            {
                if (builder.Length > 0)
                {
                    builder.Append(" ");
                }

                builder.Append(item.EvaluatedInclude);
            }

            return(pooledBuilder.ToStringAndFree());
        }
Пример #2
0
 protected override IEnumerable <ITaskItem> GetCompilerCommandLineArgs(ErgonProjectInstance executedProject)
 => executedProject.GetItems(ItemNames.StarkcCommandLineArgs);
Пример #3
0
 public static IEnumerable <ITaskItem> GetTaskItems(this ErgonProjectInstance executedProject, string itemType)
 => executedProject.GetItems(itemType);
Пример #4
0
 public static IEnumerable <ProjectFileReference> GetProjectReferences(this ErgonProjectInstance executedProject)
 => executedProject
 .GetItems(ItemNames.ProjectReference)
 .Where(i => i.ReferenceOutputAssemblyIsTrue())
 .Select(CreateProjectFileReference);
Пример #5
0
 public static IEnumerable <ITaskItem> GetMetadataReferences(this ErgonProjectInstance executedProject)
 => executedProject.GetItems(ItemNames.ReferencePath);
Пример #6
0
 public static IEnumerable <ITaskItem> GetDocuments(this ErgonProjectInstance executedProject)
 => executedProject.GetItems(ItemNames.Compile);
Пример #7
0
 public static IEnumerable <ITaskItem> GetAnalyzers(this ErgonProjectInstance executedProject)
 => executedProject.GetItems(ItemNames.Analyzer);
Пример #8
0
 public static IEnumerable <ITaskItem> GetAdditionalFiles(this ErgonProjectInstance executedProject)
 => executedProject.GetItems(ItemNames.AdditionalFiles);