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