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