27 references to ItemType
dotnet (1)
Commands\Package\VirtualProjectPackageReflector.cs (1)
29if (string.Equals(item.ItemType, "PackageReference", StringComparison.OrdinalIgnoreCase))
Microsoft.Build (23)
BuildCheck\OM\ParsedItemsCheckData.cs (1)
23MSBuildNameIgnoreCaseComparer.Default.Equals(i.ItemType, itemType));
Construction\ProjectItemElement.cs (1)
505return owner.CreateItemElement(ItemType, Include);
Construction\ProjectItemGroupElement.cs (2)
112if (MSBuildNameIgnoreCaseComparer.Default.Equals(itemType, item.ItemType)) 127if (String.Compare(itemType, item.ItemType, StringComparison.OrdinalIgnoreCase) < 0)
Construction\ProjectRootElement.cs (1)
1028if (itemGroup.Items.Any(item => MSBuildNameIgnoreCaseComparer.Default.Equals(itemType, item.ItemType)))
Definition\Project.cs (7)
2653if (removeElementCache.TryGetValue(itemElement.ItemType, out CumulativeRemoveElementData removeItemElement)) 2677if (!removeElementCache.TryGetValue(itemElement.ItemType, out CumulativeRemoveElementData cumulativeRemoveElementData)) 2681removeElementCache[itemElement.ItemType] = cumulativeRemoveElementData; 2767itemElement.ItemType.Equals(item.ItemType) && 2780return itemElements.Where(i => i.ItemType.Equals(itemType)).ToList(); 3076if (group.Count == 0 || MSBuildNameIgnoreCaseComparer.Default.Equals(itemType, group.Items.First().ItemType)) 3889if (!MSBuildNameIgnoreCaseComparer.Default.Equals(itemType, existingItemXml.ItemType))
Definition\ProjectItem.cs (2)
169{ return _xml.ItemType; } 932get => _xml.ItemType;
Evaluation\Evaluator.cs (1)
528itemElement.ItemType,
Evaluation\LazyItemEvaluator.cs (3)
477ItemType = itemElement.ItemType; 527_itemLists.TryGetValue(itemElement.ItemType, out LazyItemList previousItemList); 529_itemLists[itemElement.ItemType] = newList;
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (2)
58MSBuildEventSource.Log.ApplyLazyItemOperationsStart(_itemElement.ItemType); 63MSBuildEventSource.Log.ApplyLazyItemOperationsStop(_itemElement.ItemType);
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
54if (ItemspecContainsASingleBareItemReference(_itemSpec, _itemElement.ItemType))
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
108if (ItemspecContainsASingleBareItemReference(_itemSpec, _itemElement.ItemType))
Instance\ProjectItemInstance.cs (1)
2248set { ItemType = value.ItemType; }
Microsoft.DotNet.Cli.Utils (2)
Extensions\MSBuildProjectExtensions.cs (2)
72return group.Items.All((it) => it.ItemType == projectItemElementType); 87return root.Items.Where((it) => it.ItemType == projectItemElementType);
NuGet.CommandLine.XPlat (1)
Utility\MSBuildAPIUtility.cs (1)
530.Where(itemGroupElement => itemGroupElement.Items.Any(item => item.ItemType == itemType))?