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