45 references to ItemDefinitions
Microsoft.Build (7)
Definition\ProjectItem.cs (3)
337
if (_project.
ItemDefinitions
.TryGetValue(ItemType, out itemDefinition))
895
if (_project.
ItemDefinitions
.TryGetValue(ItemType, out itemDefinition))
1080
if (_project.
ItemDefinitions
.TryGetValue(source.ItemType, out sourceItemDefinition))
Instance\ProjectInstance.cs (3)
382
this.CreateItemDefinitionsSnapshot(project.
ItemDefinitions
);
905
IDictionary<string, ProjectItemDefinition> linkedProjectItemDefinitions = linkedProject.
ItemDefinitions
;
3383
linkedProject.
ItemDefinitions
.TryGetValue(item.ItemType, out ProjectItemDefinition itemTypeDefinition);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
59
/// Access to remote <see cref="Project.
ItemDefinitions
"/>.
Microsoft.Build.Engine.OM.UnitTests (20)
Definition\DefinitionEditing_Tests.cs (1)
2049
ProjectItemDefinition definition = project.
ItemDefinitions
["i"];
Definition\ProjectItem_Tests.cs (5)
168
ProjectItemDefinition definition = project.
ItemDefinitions
["i"];
1252
project.
ItemDefinitions
["i"].SetMetadataValue("m", "m2");
1266
Assert.Equal("m2", project.
ItemDefinitions
["i"].GetMetadataValue("m")); // Should not have been affected
1301
project.
ItemDefinitions
["i"].SetMetadataValue("m", "m2");
1313
Assert.Equal("m2", project.
ItemDefinitions
["i"].GetMetadataValue("m")); // Should not have been affected
Definition\ProjectItemDefinition_Tests.cs (6)
36
project.
ItemDefinitions
["i"].SetMetadataValue("n", "n0");
66
ProjectMetadata metadatum = project.
ItemDefinitions
["i"].GetMetadata("m");
83
ProjectItemDefinition itemDefinition = project.
ItemDefinitions
["i"];
104
IEnumerable<ProjectMetadata> metadataCollection = project.
ItemDefinitions
["i"].Metadata;
135
ProjectItemDefinition definition = project.
ItemDefinitions
["i"];
165
ProjectItemDefinition definition = project.
ItemDefinitions
["i"];
Definition\ProjectMetadata_Tests.cs (3)
370
project.
ItemDefinitions
.TryGetValue("i", out itemDefinition);
399
project.
ItemDefinitions
.TryGetValue("i", out itemDefinition);
433
project.
ItemDefinitions
.TryGetValue("i", out itemDefinition);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
338
Verify(view.
ItemDefinitions
, real.
ItemDefinitions
, Verify, context);
ObjectModelRemoting\LinkedEvaluationReadOnly_Tests.cs (2)
78
var viewItemDefinitions = this.StdGroup.View.
ItemDefinitions
;
79
var realItemDefinitions = this.StdGroup.Real.
ItemDefinitions
;
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
46
=> this.OwningCollection.ExportDictionary<string, ProjectItemDefinition, MockProjectItemDefinitionLinkRemoter>(this.Source.
ItemDefinitions
);
Microsoft.Build.Engine.UnitTests (18)
Definition\ItemDefinitionGroup_Tests.cs (15)
45
Assert.True(ContainsMetadata(p.
ItemDefinitions
["Compile"].Metadata, "First", "1st"));
46
Assert.True(ContainsMetadata(p.
ItemDefinitions
["Compile"].Metadata, "Second", "2nd"));
73
Assert.True(ContainsMetadata(p.
ItemDefinitions
["Compile"].Metadata, "First", "1st"));
74
Assert.True(ContainsMetadata(p.
ItemDefinitions
["Compile"].Metadata, "Second", "2nd"));
75
Assert.True(ContainsMetadata(p.
ItemDefinitions
["Link"].Metadata, "Third", "3rd"));
76
Assert.True(ContainsMetadata(p.
ItemDefinitions
["Link"].Metadata, "Fourth", "4th"));
437
Assert.False(p.
ItemDefinitions
.ContainsKey("Compile"));
464
Assert.True(p.
ItemDefinitions
.ContainsKey("Compile"));
491
Assert.False(p.
ItemDefinitions
.ContainsKey("Compile"));
518
Assert.True(p.
ItemDefinitions
.ContainsKey("Compile"));
545
Assert.True(p.
ItemDefinitions
.ContainsKey("Compile"));
572
Assert.True(p.
ItemDefinitions
.ContainsKey("Compile"));
594
Assert.True(p.
ItemDefinitions
.ContainsKey("ItemA"));
630
Assert.True(p.
ItemDefinitions
.ContainsKey("ItemA"));
672
Assert.True(p.
ItemDefinitions
.ContainsKey("ItemA"));
Definition\Project_Internal_Tests.cs (1)
245
project.
ItemDefinitions
.ShouldBeEmpty();
Evaluation\Evaluator_Tests.cs (2)
1527
ProjectMetadata metadatum = project.
ItemDefinitions
["i"].GetMetadata("m");
1886
Assert.Null(project.
ItemDefinitions
["i"].GetMetadata("m").Predecessor);