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