37 references to ConflictItemType
Microsoft.NET.Build.Tasks (22)
ConflictItem.cs (5)
27ConflictItemType ItemType { get; } 40public ConflictItem(ITaskItem originalItem, ConflictItemType itemType) 49ItemType = ConflictItemType.Platform; 91public ConflictItemType ItemType { get; } 100_exists = ItemType == ConflictItemType.Platform || File.Exists(SourcePath);
ConflictResolver.cs (4)
311var isPlatform1 = item1.ItemType == ConflictItemType.Platform; 312var isPlatform2 = item2.ItemType == ConflictItemType.Platform; 326if (item1.ItemType == ConflictItemType.CopyLocal && item2.ItemType == ConflictItemType.CopyLocal)
ResolvePackageFileConflicts.cs (10)
77var referenceItems = GetConflictTaskItems(References, ConflictItemType.Reference).ToArray(); 97var analyzerItems = GetConflictTaskItems(Analyzers, ConflictItemType.Analyzer).ToArray(); 113copyLocalItems = GetConflictTaskItems(ReferenceCopyLocalPaths, ConflictItemType.CopyLocal).ToArray(); 119otherRuntimeItems = GetConflictTaskItems(OtherRuntimeItems, ConflictItemType.Runtime).ToArray(); 221item.SetMetadata(nameof(ConflictItemType), conflict.ItemType.ToString()); 228private IEnumerable<ConflictItem> GetConflictTaskItems(ITaskItem[]? items, ConflictItemType itemType) 235if (loser.ItemType == ConflictItemType.Reference) 239if (winner.ItemType == ConflictItemType.Platform) 255if (loser.ItemType == ConflictItemType.Reference) 259else if (loser.ItemType == ConflictItemType.CopyLocal)
ResolvePublishOutputConflicts.cs (3)
32var conflictItemGroup1 = GetConflictTaskItems(ItemGroup1, ConflictItemType.CopyLocal); 33var conflictItemGroup2 = GetConflictTaskItems(ItemGroup2, ConflictItemType.CopyLocal); 48private IEnumerable<ConflictItem> GetConflictTaskItems(ITaskItem[]? items, ConflictItemType itemType)
Microsoft.NET.Build.Tasks.UnitTests (15)
GivenAConflictResolver.cs (10)
172var item1 = new MockConflictItem() { PackageId = "Unranked1", ItemType = ConflictItemType.Platform }; 173var item2 = new MockConflictItem() { PackageId = "Unranked2", ItemType = ConflictItemType.Reference }; 196var item1 = new MockConflictItem() { PackageId = "Package1", ItemType = ConflictItemType.Reference }; 197var item2 = new MockConflictItem() { PackageId = "Package1", ItemType = ConflictItemType.Platform }; 259var item1 = new MockConflictItem() { ItemType = ConflictItemType.Platform }; 260var item2 = new MockConflictItem() { ItemType = ConflictItemType.Platform }; 271var item1 = new MockConflictItem() { ItemType = ConflictItemType.Reference }; 272var item2 = new MockConflictItem() { ItemType = ConflictItemType.CopyLocal }; 283var item1 = new MockConflictItem() { ItemType = ConflictItemType.Reference }; 284var item2 = new MockConflictItem() { ItemType = ConflictItemType.Platform };
GivenAPackageOverrideResolver.cs (3)
73ItemType = ConflictItemType.Reference 80ItemType = ConflictItemType.Platform 91ItemType = ConflictItemType.Reference
Mocks\MockConflictItem.cs (2)
15ItemType = ConflictItemType.Reference; 27public ConflictItemType ItemType { get; set; }