2 implementations of
Microsoft.Build (2)
Collections\ItemDictionary.cs (1)
114
public ICollection<T>
this
[string itemtype]
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (1)
47
public ICollection<T>
this
[string itemType]
44 references to
Microsoft.Build (6)
BackEnd\Components\RequestBuilder\Lookup.cs (3)
523
groupFound = scope.Items
[
itemType];
601
ICollection<ProjectItemInstance> existing = PrimaryTable
[
itemType];
894
ICollection<ProjectItemInstance> existing = table
[
itemType];
Definition\Project.cs (1)
4549
return Items
[
itemType];
Instance\ProjectInstance.cs (2)
1678
return _items
[
itemType];
2511
ICollection<ProjectItemInstance> itemList = _items
[
itemType];
Microsoft.Build.Engine.UnitTests (38)
BackEnd\BuildRequestConfiguration_Tests.cs (8)
377
int fooCount = instance.ItemsToBuildWith
[
"Foo"].Count;
379
Assert.Single(instance.ItemsToBuildWith
[
"Bar"]);
380
Assert.Single(instance.ItemsToBuildWith
[
"Baz"]);
381
Assert.Equal("bazfile", instance.ItemsToBuildWith
[
"Baz"].First().EvaluatedInclude);
404
Assert.Equal(fooCount, instance.ItemsToBuildWith
[
"Foo"].Count);
405
Assert.Single(instance.ItemsToBuildWith
[
"Bar"]);
406
Assert.Single(instance.ItemsToBuildWith
[
"Baz"]);
407
Assert.Equal("bazfile", instance.ItemsToBuildWith
[
"Baz"].First().EvaluatedInclude);
BackEnd\IntrinsicTask_Tests.cs (30)
2304
Assert.Empty(p.ItemsToBuildWith
[
"i0"]);
2309
Assert.Single(p.ItemsToBuildWith
[
"i0"]);
2337
Assert.Empty(p.ItemsToBuildWith
[
"i0"]);
2342
Assert.Single(p.ItemsToBuildWith
[
"i0"]);
2374
Assert.Equal(3, p.ItemsToBuildWith
[
"i0"].Count);
2375
Assert.Single(p.ItemsToBuildWith
[
"i1"]);
2379
Assert.Equal(2, p.ItemsToBuildWith
[
"i0"].Count);
2380
Assert.Single(p.ItemsToBuildWith
[
"i1"]);
2411
Assert.Empty(p.ItemsToBuildWith
[
"i0"]);
2415
Assert.Single(p.ItemsToBuildWith
[
"i0"]);
2416
Assert.Equal("m1", p.ItemsToBuildWith
[
"i0"].First().GetMetadataValue("m"));
2448
Assert.Equal(2, p.ItemsToBuildWith
[
"i0"].Count);
2449
Assert.Equal(2, p.ItemsToBuildWith
[
"i1"].Count);
2453
Assert.Single(p.ItemsToBuildWith
[
"i0"]);
2454
Assert.Equal("a1", p.ItemsToBuildWith
[
"i0"].First().EvaluatedInclude);
2455
Assert.Empty(p.ItemsToBuildWith
[
"i1"]);
2486
Assert.Single(p.ItemsToBuildWith
[
"i0"]);
2517
Assert.Single(p.ItemsToBuildWith
[
"i0"]);
3205
ProjectItemInstance item = p.ItemsToBuildWith
[
"i0"].First();
3209
item = p.ItemsToBuildWith
[
"i0"].First();
3251
Assert.Single(p.ItemsToBuildWith
[
"i0"]);
3252
Assert.Single(p.ItemsToBuildWith
[
"i1"]);
3253
Assert.Equal("m0", p.ItemsToBuildWith
[
"i0"].First().GetMetadataValue("m"));
3254
Assert.Equal("n0", p.ItemsToBuildWith
[
"i0"].First().GetMetadataValue("n"));
3255
Assert.Equal("m1", p.ItemsToBuildWith
[
"i1"].First().GetMetadataValue("m"));
3256
Assert.Equal("n1", p.ItemsToBuildWith
[
"i1"].First().GetMetadataValue("n"));
3259
Assert.Single(p.ItemsToBuildWith
[
"i0"]);
3260
Assert.Empty(p.ItemsToBuildWith
[
"i1"]);
3261
Assert.Equal("m0", p.ItemsToBuildWith
[
"i0"].First().GetMetadataValue("m"));
3262
Assert.Equal("n0", p.ItemsToBuildWith
[
"i0"].First().GetMetadataValue("n"));