44 references to Sections
Microsoft.NET.ProjectData.Tasks (44)
ForwardCompat.cs (11)
37
private static readonly HashSet<string> KnownSections = new HashSet<string>(CacheFormat.
Sections
.All, StringComparer.Ordinal);
53
foreach (KeyValuePair<string, string[]> entry in CacheFormat.
Sections
.MetadataBySection)
501
Section? existingProps = existing.Sections.FirstOrDefault(s => s.Name == CacheFormat.
Sections
.Properties);
516
Section? candidateProps = candidate.Sections.FirstOrDefault(s => s.Name == CacheFormat.
Sections
.Properties);
521
Section? anchorSection = candidate.Sections.FirstOrDefault(s => s.Name == CacheFormat.
Sections
.SliceDimensions)
522
?? candidate.Sections.FirstOrDefault(s => s.Name == CacheFormat.
Sections
.Project)
525
var block = new List<string> { string.Empty, CacheFormat.SectionHeader(CacheFormat.
Sections
.Properties) };
576
if (existingSection.Name is CacheFormat.
Sections
.Project
577
or CacheFormat.
Sections
.SliceDimensions
578
or CacheFormat.
Sections
.Properties)
707
if (current.Name == CacheFormat.
Sections
.SliceDimensions)
ProjectDataMerger.cs (12)
278
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.Properties));
308
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.SliceDimensions));
318
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.Properties));
369
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.Properties));
389
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.Project));
489
if (currentSection != CacheFormat.
Sections
.Project && currentSection != CacheFormat.
Sections
.SliceDimensions && currentSection != CacheFormat.
Sections
.Properties)
499
case CacheFormat.
Sections
.Project:
505
case CacheFormat.
Sections
.SliceDimensions:
508
case CacheFormat.
Sections
.Properties:
512
currentList?.Add(string.Equals(currentSection, CacheFormat.
Sections
.SdkAnalyzerConfigPolicy, StringComparison.Ordinal)
ProjectDataWriter.cs (21)
181
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.Project));
192
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.SliceDimensions));
219
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.Properties));
254
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.CommandLineArguments));
289
CacheFormat.
Sections
.AnalyzerConfigFiles,
297
EmitSimplePathSectionRequired(writer, CacheFormat.SectionHeader(CacheFormat.
Sections
.AnalyzerReferences), preparedAnalyzerRefs);
299
EmitSimplePathSection(writer, CacheFormat.SectionHeader(CacheFormat.
Sections
.AnalyzerConfigFiles), preparedAnalyzerConfigFiles);
302
CacheFormat.SectionHeader(CacheFormat.
Sections
.AdditionalFiles),
303
PrepareDistinctPortablePaths(additionalFiles, resolver, CacheFormat.
Sections
.AdditionalFiles, projectFilePath, duplicateItemReporter),
324
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.Capabilities));
828
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.SourceFiles));
853
duplicateItemReporter(new ProjectDataDuplicateItemDiagnostic(projectFilePath, CacheFormat.
Sections
.SourceFiles, portable));
861
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.SourceFiles));
873
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.ProjectReferences));
891
duplicateItemReporter?.Invoke(new ProjectDataDuplicateItemDiagnostic(projectFilePath, CacheFormat.
Sections
.ProjectReferences, portable));
1027
AddDistinctPortablePath(result, seenResult, portable, CacheFormat.
Sections
.AnalyzerReferences, projectFilePath, duplicateItemReporter);
1116
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.FrameworkPacks));
1124
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.SdkAnalyzerPacks));
1132
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.SdkAnalyzerConfigPolicy));
1778
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.MetadataReferences));
2017
writer.WriteLine(CacheFormat.SectionHeader(CacheFormat.
Sections
.EmbeddedResources));