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