Implemented interface member:
property
ItemType
Microsoft.Build.Evaluation.IProjectMetadataParent.ItemType
16 writes to ItemType
Microsoft.Build.Engine.OM.UnitTests (16)
Construction\ProjectFormatting_Tests.cs (3)
583item[0].ItemType = "ProjectReference"; 605item[0].ItemType = "ProjectReference"; 628item[0].ItemType = "ProjectReference";
Definition\DefinitionEditing_Tests.cs (5)
1175item.ItemType = "j"; 1219item.ItemType = "j"; 1270item.ItemType = "j"; 1293AssertDisabledItemSplitting(projectContents, itemIndex, setupProject, (p, i) => { i.ItemType = "foo"; }); 1639item.ItemType = "j";
Definition\EditingElementsReferencedByOrReferences_Tests.cs (1)
36item.ItemType = "J";
Definition\ProjectItem_Tests.cs (2)
2025item.ItemType = "j"; 2043item.ItemType = "|";
Definition\ProtectImports_Tests.cs (2)
188item.ItemType = "NewItemType"; 245item.ItemType = NewValue;
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (2)
265fooView.ItemType = "cpp2"; 268fooReal.ItemType = "cpp3";
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
35public void ChangeItemType(string newItemType) => this.Source.ItemType = newItemType;
62 references to ItemType
Microsoft.Build (13)
Definition\Project.cs (1)
2758itemElement.ItemType.Equals(item.ItemType) &&
Definition\ProjectItem.cs (8)
317{ return ItemType; } 337if (_project.ItemDefinitions.TryGetValue(ItemType, out itemDefinition)) 764if (itemType == null || MSBuildNameIgnoreCaseComparer.Default.Equals(ItemType, itemType)) 794if (String.Equals(ItemType, newItemType, StringComparison.Ordinal)) 825_xml = _xml.ContainingProject.CreateItemElement(ItemType, ((IItem)this).EvaluatedIncludeEscaped); 895if (_project.ItemDefinitions.TryGetValue(ItemType, out itemDefinition)) 1080if (_project.ItemDefinitions.TryGetValue(source.ItemType, out sourceItemDefinition)) 1139if ((itemType == null) || String.Equals(_item.ItemType, itemType, StringComparison.OrdinalIgnoreCase))
Instance\ProjectInstance.cs (3)
3355item.ItemType, 3383linkedProject.ItemDefinitions.TryGetValue(item.ItemType, out ProjectItemDefinition itemTypeDefinition); 3414item.ItemType,
Utilities\Utilities.cs (1)
757.Select(i => new ItemData(i.ItemType, (IItemData)i));
Microsoft.Build.Engine.OM.UnitTests (36)
Definition\DefinitionEditing_Tests.cs (6)
165Assert.Equal("i", items[0].ItemType); 192Assert.Equal("i", items[0].ItemType); 1177Assert.Equal("j", item.ItemType); 1221Assert.Equal("j", item.ItemType); 2089Assert.Equal("i", items[0].ItemType); 2116Assert.Equal("i", items[0].ItemType);
Definition\Project_Tests.cs (2)
1698(string.Equals(item.ItemType, "i", StringComparison.OrdinalIgnoreCase) 1699|| string.Equals(item.ItemType, "l", StringComparison.OrdinalIgnoreCase)).ShouldBeTrue();
Definition\ProjectItem_Tests.cs (21)
102Assert.Equal("i", item.ItemType); 2027Assert.Equal("j", item.ItemType); 2422var items = project.ItemsIgnoringCondition.Where(i => i.ItemType.Equals("I2")); 2449var items = project.ItemsIgnoringCondition.Where(i => i.ItemType.Equals("I2")); 2481var items = project.ItemsIgnoringCondition.Where(i => i.ItemType.Equals("I2")); 2526var items = project.ItemsIgnoringCondition.Where(i => i.ItemType.Equals("I2")); 2558var items = project.ItemsIgnoringCondition.Where(i => i.ItemType.Equals("I2")); 2595var items = project.ItemsIgnoringCondition.Where(i => i.ItemType.Equals("I2")); 2625var items = project.ItemsIgnoringCondition.Where(i => i.ItemType.Equals("I2")); 2656IEnumerable<ProjectItem> items = project.ItemsIgnoringCondition.Where(i => i.ItemType.Equals("I2")); 2685IEnumerable<ProjectItem> items = project.ItemsIgnoringCondition.Where(i => i.ItemType.Equals("I3")); 3094items[2].ItemType.ShouldBe("to"); 3149items[1].ItemType.ShouldBe("to"); 3173items[1].ItemType.ShouldBe("to"); 3192items[0].ItemType.ShouldBe("to"); 3220items[2].ItemType.ShouldBe("to"); 3303items[5].ItemType.ShouldBe("from3"); 3304items[6].ItemType.ShouldBe("to"); 3363var lastItemMetadata = items.Last(i => i.ItemType.Equals(itemType) && i.EvaluatedInclude.Equals(itemValue)).GetMetadataValue("m"); 3383var items = ObjectModelHelpers.GetItemsFromFragment(content, true).Where(i => i.ItemType.Equals("to")).ToArray(); 3662.Where(i => i.ItemType.Equals("i"))
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
218Assert.Equal(real.ItemType, view.ItemType);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (5)
264Assert.Equal("cpp", fooView.ItemType); 266Assert.Equal("cpp2", fooView.ItemType); 267Assert.Equal("cpp2", fooReal.ItemType); 269Assert.Equal("cpp3", fooView.ItemType); 270Assert.Equal("cpp3", fooReal.ItemType);
Microsoft.Build.Engine.UnitTests (12)
EscapingInProjects_Tests.cs (2)
478Assert.Equal("MyWildCard", newItems.First().ItemType); // "Newly added item should have correct ItemType" 520Assert.Equal("MyWildCard", newItems.First().ItemType); // "Newly added item should have correct ItemType"
Evaluation\ItemEvaluation_Tests.cs (10)
67var itemsForI = items.Where(i => i.ItemType == "i").ToList(); 76var itemsForI2 = items.Where(i => i.ItemType == "i2").ToList(); 116var itemsForI = items.Where(i => i.ItemType == "i").ToList(); 119var itemsForI2 = items.Where(i => i.ItemType == "i2").ToList(); 208var itemsForI = items.Where(i => i.ItemType == "i").ToList(); 219var itemsForI2 = items.Where(i => i.ItemType == "i2").ToList(); 504var i1Items = items.Where(i => i.ItemType == "i1").ToList(); 518var i2Items = items.Where(i => i.ItemType == "i2").ToList(); 522var i3Items = items.Where(i => i.ItemType == "i3").ToList(); 525var i_condItems = items.Where(i => i.ItemType == "i_cond").ToList();
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1093return string.Join(itemSeparator, project.Items.Where(i => i.ItemType.Equals(itemType)).Select(i => i.EvaluatedInclude));