74 references to Items
Microsoft.Build (11)
Definition\Project.cs (1)
1681foreach (ProjectItem item in Items)
Definition\ProjectItem.cs (1)
618var siblingItems = _project.Items.Where(i => i._xml == _xml);
Instance\ProjectInstance.cs (8)
385var projectItemToInstanceMap = this.CreateItemsSnapshot(project.Items, project.ItemTypes.Count, keepEvaluationCache); 387this.CreateEvaluatedIncludeSnapshotIfRequested(keepEvaluationCache, project.Items, projectItemToInstanceMap); 405this.EvaluatedItemElements = new List<ProjectItemElement>(project.Items.Count); 406foreach (var item in project.Items) 481EvaluatedItemElements = new List<ProjectItemElement>(linkedProject.Items.Count); 482foreach (var item in linkedProject.Items) 923var itemsByType = linkedProject.Items as IDictionary<string, ICollection<ProjectItem>>; 933linkedProject.Items,
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
64/// Access to remote <see cref="Project.Items"/>.
Microsoft.Build.Engine.OM.UnitTests (58)
Construction\ConstructionEditing_Tests.cs (5)
2325ProjectItem item = Helpers.GetFirst(project.Items); 2329Assert.Equal(1, Helpers.Count(project.Items)); 2333Assert.Equal(0, Helpers.Count(project.Items)); 2353ProjectMetadata metadatum = Helpers.GetFirst(project.Items).GetMetadata("m"); 2360metadatum = Helpers.GetFirst(project.Items).GetMetadata("m");
Construction\ProjectItemElement_Tests.cs (3)
964Assert.Empty(Helpers.MakeList(project.Items)); 980Assert.Equal("i2", Helpers.GetFirst(project.Items).EvaluatedInclude); 996Assert.Empty(Helpers.MakeList(project.Items));
Definition\DefinitionEditing_Tests.cs (29)
163List<ProjectItem> items = Helpers.MakeList(project.Items); 190List<ProjectItem> items = Helpers.MakeList(project.Items); 271Assert.Equal("$(p)", Helpers.GetFirst(project.Items).UnevaluatedInclude); 272Assert.Equal("v1", Helpers.GetFirst(project.Items).EvaluatedInclude); 292List<ProjectItem> items = Helpers.MakeList(project.Items); 861ProjectItem item = Helpers.GetLast(project.Items); 888ProjectItem item = Helpers.GetFirst(project.Items); 916ProjectItem item = Helpers.GetLast(project.Items); 944ProjectItem item = Helpers.GetLast(project.Items); 974ProjectItem item = Helpers.GetLast(project.Items); 1080Assert.Equal("$(p)", (Helpers.MakeList(project.Items))[1].EvaluatedInclude); 1102ProjectItem item = Helpers.GetFirst(project.Items); 1144ProjectItem item = Helpers.GetFirst(project.Items); 1192Assert.Single(Helpers.MakeList(project.Items)); 1312Assert.Equal(0, Helpers.Count(project.Items)); 1398ProjectItem item = Helpers.GetFirst(project.Items); 1771Assert.Single(project.Items); 1882List<ProjectItem> items = Helpers.MakeList(project.Items); 1910List<ProjectItem> items = Helpers.MakeList(project.Items); 1940List<ProjectItem> items = Helpers.MakeList(project.Items); 1958items = Helpers.MakeList(project.Items); 2011ProjectItem item = Helpers.GetFirst(project.Items); 2032item = Helpers.GetFirst(project.Items); 2087List<ProjectItem> items = Helpers.MakeList(project.Items); 2114List<ProjectItem> items = Helpers.MakeList(project.Items); 2195Assert.Equal("$(p)", Helpers.GetFirst(project.Items).UnevaluatedInclude); 2196Assert.Equal("v1", Helpers.GetFirst(project.Items).EvaluatedInclude); 2216List<ProjectItem> items = Helpers.MakeList(project.Items); 2601var item = project.Items.ElementAt(itemIndex);
Definition\Project_Tests.cs (10)
1755foreach (ProjectItem item in project.Items) 2226Helpers.MakeList(project.Items).ShouldBeEmpty(); 2248Helpers.MakeList(project.Items).ShouldBeEmpty(); 2270project.Items.ShouldBeEmpty(); 2297project.Items.Count.ShouldBe(2); 2318project.Items.Count.ShouldBe(3); 2354project.Items.ShouldBeEmpty(); 2385project1.RemoveItems(project2.Items); 2409project.Items.ShouldBeEmpty(); 4350var itemsOfValue = p.Items.Where(i => i.EvaluatedInclude.Equals(itemValue));
Definition\ProjectItem_Tests.cs (8)
1115ObjectModelHelpers.AssertItems(expectedInclude, new Project(projectFile).Items.ToList()); 1155ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 1175ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 1999var projectItem = project.Items.Single(); 2005projectItem = project.Items.Single(); 2385Assert.Equal(@"a;b", string.Join(";", project.Items.Select(i => i.EvaluatedInclude))); 2772var items = project.Items.ToList(); 3661.Items
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
337Verify(view.Items, real.Items, Verify, context);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
48public ICollection<MockProjectItemLinkRemoter> Items => this.OwningCollection.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.Items);
Microsoft.Build.Engine.UnitTests (2)
Definition\Project_Internal_Tests.cs (1)
244project.Items.ShouldBeEmpty();
Evaluation\Evaluator_Tests.cs (1)
1479ProjectRootElement importXml = ProjectRootElement.Open(project.Items.ElementAt(0).Xml.ContainingProject.FullPath);
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
126.Items 1093return string.Join(itemSeparator, project.Items.Where(i => i.ItemType.Equals(itemType)).Select(i => i.EvaluatedInclude)); 1107(allItems ? project.Items : project.GetItems("i")));