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)
582
item[0].
ItemType
= "ProjectReference";
604
item[0].
ItemType
= "ProjectReference";
627
item[0].
ItemType
= "ProjectReference";
Definition\DefinitionEditing_Tests.cs (5)
1173
item.
ItemType
= "j";
1217
item.
ItemType
= "j";
1268
item.
ItemType
= "j";
1291
AssertDisabledItemSplitting(projectContents, itemIndex, setupProject, (p, i) => { i.
ItemType
= "foo"; });
1637
item.
ItemType
= "j";
Definition\EditingElementsReferencedByOrReferences_Tests.cs (1)
34
item.
ItemType
= "J";
Definition\ProjectItem_Tests.cs (2)
2023
item.
ItemType
= "j";
2041
item.
ItemType
= "|";
Definition\ProtectImports_Tests.cs (2)
187
item.
ItemType
= "NewItemType";
244
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;
64 references to ItemType
Microsoft.Build (14)
Definition\Project.cs (1)
2764
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)
3361
item.
ItemType
,
3389
linkedProject.ItemDefinitions.TryGetValue(item.
ItemType
, out ProjectItemDefinition itemTypeDefinition);
3420
item.
ItemType
,
Utilities\Utilities.cs (2)
748
.Select(i => new ItemData(i.
ItemType
, (IItemData)i));
778
.Select(i => new ItemData(i.
ItemType
, (IItemData)i)))
Microsoft.Build.Engine.OM.UnitTests (36)
Definition\DefinitionEditing_Tests.cs (6)
163
Assert.Equal("i", items[0].
ItemType
);
190
Assert.Equal("i", items[0].
ItemType
);
1175
Assert.Equal("j", item.
ItemType
);
1219
Assert.Equal("j", item.
ItemType
);
2087
Assert.Equal("i", items[0].
ItemType
);
2114
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)
100
Assert.Equal("i", item.
ItemType
);
2025
Assert.Equal("j", item.
ItemType
);
2420
var items = project.ItemsIgnoringCondition.Where(i => i.
ItemType
.Equals("I2"));
2447
var items = project.ItemsIgnoringCondition.Where(i => i.
ItemType
.Equals("I2"));
2479
var items = project.ItemsIgnoringCondition.Where(i => i.
ItemType
.Equals("I2"));
2524
var items = project.ItemsIgnoringCondition.Where(i => i.
ItemType
.Equals("I2"));
2556
var items = project.ItemsIgnoringCondition.Where(i => i.
ItemType
.Equals("I2"));
2593
var items = project.ItemsIgnoringCondition.Where(i => i.
ItemType
.Equals("I2"));
2623
var items = project.ItemsIgnoringCondition.Where(i => i.
ItemType
.Equals("I2"));
2654
IEnumerable<ProjectItem> items = project.ItemsIgnoringCondition.Where(i => i.
ItemType
.Equals("I2"));
2683
IEnumerable<ProjectItem> items = project.ItemsIgnoringCondition.Where(i => i.
ItemType
.Equals("I3"));
3092
items[2].
ItemType
.ShouldBe("to");
3147
items[1].
ItemType
.ShouldBe("to");
3171
items[1].
ItemType
.ShouldBe("to");
3190
items[0].
ItemType
.ShouldBe("to");
3218
items[2].
ItemType
.ShouldBe("to");
3301
items[5].
ItemType
.ShouldBe("from3");
3302
items[6].
ItemType
.ShouldBe("to");
3361
var lastItemMetadata = items.Last(i => i.
ItemType
.Equals(itemType) && i.EvaluatedInclude.Equals(itemValue)).GetMetadataValue("m");
3381
var items = ObjectModelHelpers.GetItemsFromFragment(content, true).Where(i => i.
ItemType
.Equals("to")).ToArray();
3660
.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 (13)
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\Evaluator_Tests.cs (1)
130
project.AllEvaluatedItems.Where(ei => ei.
ItemType
== "ItemCheck" && ei.Metadata.Any(m => m.EvaluatedValue == "Dummy")).ShouldNotBeEmpty();
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)
1092
return string.Join(itemSeparator, project.Items.Where(i => i.
ItemType
.Equals(itemType)).Select(i => i.EvaluatedInclude));