23 references to ConflictItemType
Microsoft.NET.Build.Extensions.Tasks (23)
parent\Common\ConflictResolution\ConflictItem.cs (6)
27ConflictItemType ItemType { get; } 45public ConflictItem(ITaskItem originalItem, ConflictItemType itemType, TaskEnvironment? taskEnvironment) 52public ConflictItem(ITaskItem originalItem, ConflictItemType itemType) 60ItemType = ConflictItemType.Platform; 102public ConflictItemType ItemType { get; } 111_exists = ItemType == ConflictItemType.Platform || File.Exists(SourcePathForFileAccess);
parent\Common\ConflictResolution\ConflictResolver.cs (4)
311var isPlatform1 = item1.ItemType == ConflictItemType.Platform; 312var isPlatform2 = item2.ItemType == ConflictItemType.Platform; 326if (item1.ItemType == ConflictItemType.CopyLocal && item2.ItemType == ConflictItemType.CopyLocal)
parent\Common\ConflictResolution\ResolveOverlappingItemGroupConflicts.cs (3)
36var conflictItemGroup1 = GetConflictTaskItems(ItemGroup1, ConflictItemType.CopyLocal); 37var conflictItemGroup2 = GetConflictTaskItems(ItemGroup2, ConflictItemType.CopyLocal); 52private IEnumerable<ConflictItem> GetConflictTaskItems(ITaskItem[]? items, ConflictItemType itemType)
parent\Common\ConflictResolution\ResolvePackageFileConflicts.cs (10)
82var referenceItems = GetConflictTaskItems(References, ConflictItemType.Reference).ToArray(); 102var analyzerItems = GetConflictTaskItems(Analyzers, ConflictItemType.Analyzer).ToArray(); 118copyLocalItems = GetConflictTaskItems(ReferenceCopyLocalPaths, ConflictItemType.CopyLocal).ToArray(); 124otherRuntimeItems = GetConflictTaskItems(OtherRuntimeItems, ConflictItemType.Runtime).ToArray(); 236item.SetMetadata(nameof(ConflictItemType), conflict.ItemType.ToString()); 243private IEnumerable<ConflictItem> GetConflictTaskItems(ITaskItem[]? items, ConflictItemType itemType) 250if (loser.ItemType == ConflictItemType.Reference) 254if (winner.ItemType == ConflictItemType.Platform) 270if (loser.ItemType == ConflictItemType.Reference) 274else if (loser.ItemType == ConflictItemType.CopyLocal)