145 instantiations of ProjectItemInstance
Microsoft.Build (17)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
459
items.Add(new
ProjectItemInstance
(
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (4)
1395
newItem = new
ProjectItemInstance
(_projectInstance, outputTargetName, outputAsProjectItem.IncludeEscaped, parameterLocationEscaped);
1404
newItem = new
ProjectItemInstance
(_projectInstance, outputTargetName, outputAsITaskItem2.EvaluatedIncludeEscaped, parameterLocationEscaped);
1413
newItem = new
ProjectItemInstance
(_projectInstance, outputTargetName, EscapingUtilities.Escape(output.ItemSpec), parameterLocationEscaped);
1521
_batchBucket.Lookup.AddNewItem(new
ProjectItemInstance
(_projectInstance, outputTargetName, EscapingUtilities.Escape(output), EscapingUtilities.Escape(parameterLocation.File)));
Graph\GraphBuilder.cs (2)
159
new
ProjectItemInstance
(
235
var stubItem = new
ProjectItemInstance
(
Instance\ProjectInstance.cs (4)
1953
ProjectItemInstance item = new
ProjectItemInstance
(this, itemType, evaluatedInclude, this.FullPath);
1976
ProjectItemInstance item = new
ProjectItemInstance
(this, itemType, evaluatedInclude, metadata, this.FullPath);
3353
var instance = new
ProjectItemInstance
(
3412
ProjectItemInstance instance = new
ProjectItemInstance
(
Instance\ProjectItemInstance.cs (6)
622
ProjectItemInstance newItem = new
ProjectItemInstance
(projectInstance);
660
return new
ProjectItemInstance
(this);
669
return new
ProjectItemInstance
(this, newProject);
2020
ProjectItemInstance item = new
ProjectItemInstance
(_project, ItemType, include, definingProject);
2053
return new
ProjectItemInstance
(_project, ItemType, evaluatedInclude, evaluatedIncludeBeforeWildcardExpansion, definingProject);
2103
return new
ProjectItemInstance
(_project, ItemType, includeEscaped, includeBeforeWildcardExpansionEscaped, source._taskItem._directMetadata, itemDefinitionsClone, definingProject, useItemDefinitionsWithoutModification: false);
Microsoft.Build.Engine.UnitTests (128)
BackEnd\BatchingEngine_Tests.cs (16)
37
items.Add(new
ProjectItemInstance
(project, "File", "a.foo", project.FullPath));
38
items.Add(new
ProjectItemInstance
(project, "File", "b.foo", project.FullPath));
39
items.Add(new
ProjectItemInstance
(project, "File", "c.foo", project.FullPath));
40
items.Add(new
ProjectItemInstance
(project, "File", "d.foo", project.FullPath));
41
items.Add(new
ProjectItemInstance
(project, "File", "e.foo", project.FullPath));
45
items.Add(new
ProjectItemInstance
(project, "Doc", "a.doc", project.FullPath));
46
items.Add(new
ProjectItemInstance
(project, "Doc", "b.doc", project.FullPath));
47
items.Add(new
ProjectItemInstance
(project, "Doc", "c.doc", project.FullPath));
48
items.Add(new
ProjectItemInstance
(project, "Doc", "d.doc", project.FullPath));
49
items.Add(new
ProjectItemInstance
(project, "Doc", "e.doc", project.FullPath));
135
ProjectItemInstance a = new
ProjectItemInstance
(project, "File", "a.foo", project.FullPath);
136
ProjectItemInstance b = new
ProjectItemInstance
(project, "File", "b.foo", project.FullPath);
172
ProjectItemInstance a = new
ProjectItemInstance
(project, "File", "a.foo", project.FullPath);
174
ProjectItemInstance b = new
ProjectItemInstance
(project, "File", "b.foo", project.FullPath);
232
items.Add(new
ProjectItemInstance
(project, "File", "a.foo", project.FullPath));
233
items.Add(new
ProjectItemInstance
(project, "File", "b.foo", project.FullPath)); // Need at least two items for this test case to ensure multiple buckets might be possible
BackEnd\IntrinsicTask_Tests.cs (4)
3926
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i0", "a1", project.FullPath);
3927
ProjectItemInstance item2 = new
ProjectItemInstance
(project, "i0", "a2", project.FullPath);
3928
ProjectItemInstance item3 = new
ProjectItemInstance
(project, "i0", "a3", project.FullPath);
3929
ProjectItemInstance item4 = new
ProjectItemInstance
(project, "i0", "a4", project.FullPath);
BackEnd\Lookup_Tests.cs (38)
29
table1.Add(new
ProjectItemInstance
(project, "i1", "a1", project.FullPath));
30
table1.Add(new
ProjectItemInstance
(project, "i2", "a%3b1", project.FullPath));
34
lookup.PopulateWithItem(new
ProjectItemInstance
(project, "i1", "a2", project.FullPath));
35
lookup.PopulateWithItem(new
ProjectItemInstance
(project, "i2", "a%282", project.FullPath));
51
table1.Add(new
ProjectItemInstance
(project, "i1", "a1", project.FullPath));
52
table1.Add(new
ProjectItemInstance
(project, "i2", "a%3b1", project.FullPath));
84
table1.Add(new
ProjectItemInstance
(project, "i1", "a1", project.FullPath));
108
lookup.AddNewItem(new
ProjectItemInstance
(project, "i1", "a2", project.FullPath));
154
table1.Add(new
ProjectItemInstance
(project, "i1", "a1", project.FullPath));
157
table1.Add(new
ProjectItemInstance
(project, "i1", "a1", project.FullPath));
165
new
ProjectItemInstance
(project, "i1", "a1", project.FullPath), // Should not get added
166
new
ProjectItemInstance
(project, "i1", "a2", project.FullPath), // Should get added
206
table1.Add(new
ProjectItemInstance
(project, "i1", "a1", new KeyValuePair<string, string>[] { new KeyValuePair<string, string>("m1", "m1") }, project.FullPath));
207
table1.Add(new
ProjectItemInstance
(project, "i1", "a1", new KeyValuePair<string, string>[] { new KeyValuePair<string, string>("m1", "m2") }, project.FullPath));
215
new
ProjectItemInstance
(project, "i1", "a1", project.FullPath), // Should get added
216
new
ProjectItemInstance
(project, "i1", "a2", new KeyValuePair<string, string>[] { new KeyValuePair<string, string>( "m1", "m1") }, project.FullPath), // Should get added
217
new
ProjectItemInstance
(project, "i1", "a1", new KeyValuePair<string, string>[] { new KeyValuePair<string, string>( "m1", "m1") }, project.FullPath), // Should not get added
218
new
ProjectItemInstance
(project, "i1", "a1", new KeyValuePair<string, string>[] { new KeyValuePair<string, string>( "m1", "m3") }, project.FullPath), // Should get added
255
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a1", project.FullPath);
264
ProjectItemInstance item2 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
306
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
366
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
407
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
471
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
531
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
602
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
669
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
724
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
772
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
826
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
867
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
902
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
975
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
1016
lookup.AddNewItem(new
ProjectItemInstance
(project, "x", "y", project.FullPath));
1030
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
1079
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
1134
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
1169
ProjectItemInstance item1 = new
ProjectItemInstance
(project, "i1", "a2", project.FullPath);
BackEnd\MockTaskBuilder.cs (2)
102
lookupForInference.AddNewItem(new
ProjectItemInstance
(requestEntry.RequestConfiguration.Project, taskInstance.Name + "_Item", "Item", task.Location.File));
106
lookupForExecution.AddNewItem(new
ProjectItemInstance
(requestEntry.RequestConfiguration.Project, taskInstance.Name + "_Item", "Item", task.Location.File));
BackEnd\TargetUpToDateChecker_Tests.cs (11)
183
items.Add(new
ProjectItemInstance
(project, "Items", "a.cs", project.FullPath));
184
items.Add(new
ProjectItemInstance
(project, "Items", "b.cs", project.FullPath));
225
items.Add(new
ProjectItemInstance
(project, "Items", "a.cs", project.FullPath));
226
items.Add(new
ProjectItemInstance
(project, "Items", "b.cs", project.FullPath));
227
items.Add(new
ProjectItemInstance
(project, "Items", "c.cs", project.FullPath));
272
items.Add(new
ProjectItemInstance
(project, "Items", "a.cs", project.FullPath));
273
items.Add(new
ProjectItemInstance
(project, "Items", "b.cs", project.FullPath));
274
items.Add(new
ProjectItemInstance
(project, "Items", "c.cs", project.FullPath));
275
items.Add(new
ProjectItemInstance
(project, "MoreItems", "a.txt", project.FullPath));
276
items.Add(new
ProjectItemInstance
(project, "MoreItems", "b.txt", project.FullPath));
277
items.Add(new
ProjectItemInstance
(project, "MoreItems", "c.txt", project.FullPath));
BackEnd\TaskExecutionHost_Tests.cs (3)
1273
ProjectItemInstance item = new
ProjectItemInstance
(project, "ItemListContainingOneItem", "a.cs", ".");
1278
item = new
ProjectItemInstance
(project, "ItemListContainingTwoItems", "b.cs", ".");
1279
ProjectItemInstance item2 = new
ProjectItemInstance
(project, "ItemListContainingTwoItems", "c.cs", ".");
BackEnd\TaskRegistry_Tests.cs (6)
2215
ProjectItemInstance iag = new
ProjectItemInstance
(project, "IntermediateAssembly", @"subdir1\engine.dll", project.FullPath);
2219
iag = new
ProjectItemInstance
(project, "IntermediateAssembly", @"subdir2\tasks.dll", project.FullPath);
2226
ProjectItemInstance fig = new
ProjectItemInstance
(project, "FirstItem" + i, "FirstValue" + i, project.FullPath);
2233
ProjectItemInstance sig = new
ProjectItemInstance
(project, "SecondItem" + i, "SecondValue" + i, project.FullPath);
2238
ProjectItemInstance tig = new
ProjectItemInstance
(project, "ThirdItem", "ThirdValue1", project.FullPath);
2242
ProjectItemInstance trig = new
ProjectItemInstance
(project, "ItemWithTrueItem", "true", project.FullPath);
Evaluation\Expander_Tests.cs (19)
86
ig.Add(new
ProjectItemInstance
(project, "Compile", "foo.cs", project.FullPath));
87
ig.Add(new
ProjectItemInstance
(project, "Compile", "bar.cs", project.FullPath));
90
ig2.Add(new
ProjectItemInstance
(project, "Resource", "bing.resx", project.FullPath));
758
ProjectItemInstance pi = new
ProjectItemInstance
(project, "i", "i" + n.ToString(), project.FullPath);
802
ProjectItemInstance i0 = new
ProjectItemInstance
(project, "i", "i0", project.FullPath);
803
ProjectItemInstance i1 = new
ProjectItemInstance
(project, "i", "i1", project.FullPath);
1369
ProjectItemInstance i1 = new
ProjectItemInstance
(project, "IntermediateAssembly",
1373
ProjectItemInstance i2 = new
ProjectItemInstance
(project, "IntermediateAssembly",
1379
ProjectItemInstance i3 = new
ProjectItemInstance
(project, "Content", "splash.bmp", project.FullPath);
1384
ProjectItemInstance i4 = new
ProjectItemInstance
(project, "Resource", "string$(p).resx", project.FullPath);
1387
ProjectItemInstance i5 = new
ProjectItemInstance
(project, "Resource", "dialogs%253b.resx", project.FullPath);
1392
ProjectItemInstance i6 = new
ProjectItemInstance
(project, "Content", "about.bmp", project.FullPath);
1583
var item = new
ProjectItemInstance
(project, "ManyItems", $"ThisIsAFairlyLongFileName_{i}.bmp", project.FullPath);
1591
new
ProjectItemInstance
(project, "ManySpacesItem", "Foo", project.FullPath),
1592
new
ProjectItemInstance
(project, "ManySpacesItem", manySpaces, project.FullPath),
1593
new
ProjectItemInstance
(project, "ManySpacesItem", "Bar", project.FullPath),
1597
new
ProjectItemInstance
(project, "Exactly1024", "".PadLeft(1024), project.FullPath),
1598
new
ProjectItemInstance
(project, "Exactly1024", "Foo", project.FullPath),
3917
ig.Add(new
ProjectItemInstance
(project, "Compile", "fOo.Cs", project.FullPath));
Evaluation\ItemSpec_Tests.cs (1)
109
itemDictionary.Add(new
ProjectItemInstance
(dummyProject, itemType.Key, item, dummyProject.FullPath));
ExpressionTree_Tests.cs (17)
185
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "foo.cs", parentProject.FullPath));
186
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "bar.cs", parentProject.FullPath));
187
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "baz.cs", parentProject.FullPath));
188
itemBag.Add(new
ProjectItemInstance
(parentProject, "Boolean", "true", parentProject.FullPath));
215
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "foo.cs", parentProject.FullPath));
216
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "bar.cs", parentProject.FullPath));
217
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "baz.cs", parentProject.FullPath));
250
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "foo.cs", parentProject.FullPath));
251
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "bar.cs", parentProject.FullPath));
252
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "baz.cs", parentProject.FullPath));
282
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "a", parentProject.FullPath));
299
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "foo.cs", parentProject.FullPath));
300
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "bar.cs", parentProject.FullPath));
301
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "baz.cs", parentProject.FullPath));
328
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "foo.cs", parentProject.FullPath));
329
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "bar.cs", parentProject.FullPath));
330
itemBag.Add(new
ProjectItemInstance
(parentProject, "Compile", "baz.cs", parentProject.FullPath));
ExpressionTreeExpression_Tests.cs (7)
376
itemBag.Add(new
ProjectItemInstance
(parentProject, "u", "a'b;c", parentProject.FullPath));
377
itemBag.Add(new
ProjectItemInstance
(parentProject, "v", "a", parentProject.FullPath));
378
itemBag.Add(new
ProjectItemInstance
(parentProject, "w", "1", parentProject.FullPath));
379
itemBag.Add(new
ProjectItemInstance
(parentProject, "x", "true", parentProject.FullPath));
380
itemBag.Add(new
ProjectItemInstance
(parentProject, "y", "xxx", parentProject.FullPath));
381
itemBag.Add(new
ProjectItemInstance
(parentProject, "z", "xxx", parentProject.FullPath));
382
itemBag.Add(new
ProjectItemInstance
(parentProject, "z", "yyy", parentProject.FullPath));
Graph\ProjectGraph_Tests.cs (4)
137
var referenceItem1 = new
ProjectItemInstance
(projectInstance, "Ref1", "path1", "file1");
140
var referenceItem2 = new
ProjectItemInstance
(projectInstance, "Ref2", "path2", "file2");
184
var referenceItem1 = new
ProjectItemInstance
(projectInstance, "Ref1", "path1", "file1");
185
var referenceItem2 = new
ProjectItemInstance
(projectInstance, "Ref2", "path1", "file1");
1117 references to ProjectItemInstance
Microsoft.Build (368)
BackEnd\Components\Communications\LogMessagePacket.cs (1)
8
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\Components\Logging\ILoggingService.cs (1)
13
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
15
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\Components\Logging\ProjectLoggingContext.cs (4)
13
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
124
IItemDictionary<
ProjectItemInstance
> projectItems,
160
IItemDictionary<
ProjectItemInstance
> projectItems,
191
IItemDictionary<
ProjectItemInstance
> projectItems,
BackEnd\Components\Logging\TargetLoggingContext.cs (1)
10
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\Components\ProjectCache\CacheResult.cs (2)
131
private static
ProjectItemInstance
.TaskItem CreateTaskItem(ITaskItem2 taskItemInterface)
133
var taskItem = new
ProjectItemInstance
.TaskItem(taskItemInterface.EvaluatedIncludeEscaped, definingFileEscaped: null);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
178
ICollection<
ProjectItemInstance
> items = projectInstance.GetItems(ItemTypeNames.ProjectCachePlugin);
179
foreach (
ProjectItemInstance
item in items)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (10)
147
Dictionary<string, ICollection<
ProjectItemInstance
>> itemListsToBeBatched = GetItemListsToBeBatched(consumedMetadataReferences, consumedItemReferences, lookup, elementLocation);
206
private static Dictionary<string, ICollection<
ProjectItemInstance
>> GetItemListsToBeBatched(
215
var itemListsToBeBatched = new Dictionary<string, ICollection<
ProjectItemInstance
>>(MSBuildNameIgnoreCaseComparer.Default);
257
ICollection<
ProjectItemInstance
> items = lookup.GetItems(consumedItemName);
262
foreach (
ProjectItemInstance
item in items)
302
Dictionary<string, ICollection<
ProjectItemInstance
>> itemListsToBeBatched,
313
foreach (KeyValuePair<string, ICollection<
ProjectItemInstance
>> entry in itemListsToBeBatched)
318
ICollection<
ProjectItemInstance
> items = entry.Value ?? lookup.GetItems(itemName);
322
foreach (
ProjectItemInstance
item in items)
388
ProjectItemInstance
item,
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (27)
18
using ProjectItemInstanceFactory = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem.ProjectItemInstanceFactory;
168
List<
ProjectItemInstance
> itemsToAdd = ExpandItemIntoItems(child, bucket.Expander, keepMetadata, removeMetadata, loggingContext);
203
ProjectItemInstance
.SetMetadata(metadataTable.AddedMetadata, itemsToAdd); // Add in one operation for potential copy-on-write
252
ICollection<
ProjectItemInstance
> group = bucket.Lookup.GetItems(child.ItemType);
259
List<
ProjectItemInstance
> itemsToRemove;
299
ICollection<
ProjectItemInstance
> group = bucket.Lookup.GetItems(child.ItemType);
382
private List<
ProjectItemInstance
> ExpandItemIntoItems(
384
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander,
391
List<
ProjectItemInstance
> items = new List<
ProjectItemInstance
>();
429
IList<
ProjectItemInstance
> itemsFromSplit = expander.ExpandSingleItemVectorExpressionIntoItems(
487
foreach (
var
item in items)
498
foreach (
var
item in items)
546
private List<
ProjectItemInstance
> FindItemsMatchingSpecification(
547
ICollection<
ProjectItemInstance
> items,
550
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander)
596
List<
ProjectItemInstance
> itemsRemoved = new List<
ProjectItemInstance
>();
598
foreach (
ProjectItemInstance
item in items)
614
private List<
ProjectItemInstance
> FindItemsMatchingMetadataSpecification(
615
ICollection<
ProjectItemInstance
> group,
617
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander,
621
ItemSpec<ProjectPropertyInstance,
ProjectItemInstance
> itemSpec = new ItemSpec<ProjectPropertyInstance,
ProjectItemInstance
>(child.Remove, expander, child.RemoveLocation, Project.Directory, true);
623
itemSpec.Fragments.All(f => f is ItemSpec<ProjectPropertyInstance,
ProjectItemInstance
>.ItemExpressionFragment),
628
MetadataTrie<ProjectPropertyInstance,
ProjectItemInstance
> metadataSet = new MetadataTrie<ProjectPropertyInstance,
ProjectItemInstance
>(matchingOptions, matchOnMetadata, itemSpec);
BackEnd\Components\RequestBuilder\ItemBucket.cs (5)
31
private Expander<ProjectPropertyInstance,
ProjectItemInstance
> _expander;
97
_lookup.PopulateWithItems(name, new List<
ProjectItemInstance
>());
112
_expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(_lookup, _lookup, new StringMetadataTable(_metadata), FileSystems.Default, loggingContext);
157
internal Expander<ProjectPropertyInstance,
ProjectItemInstance
> Expander
200
internal void AddItem(
ProjectItemInstance
item)
BackEnd\Components\RequestBuilder\Lookup.cs (90)
19
using ItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<Microsoft.Build.Execution.
ProjectItemInstance
, Microsoft.Build.BackEnd.Lookup.MetadataModifications>;
20
using ItemTypeToItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<Microsoft.Build.Execution.
ProjectItemInstance
, Microsoft.Build.BackEnd.Lookup.MetadataModifications>>;
57
internal class Lookup : IPropertyProvider<ProjectPropertyInstance>, IItemProvider<
ProjectItemInstance
>
83
private Dictionary<
ProjectItemInstance
,
ProjectItemInstance
> _cloneTable;
92
internal Lookup(IItemDictionary<
ProjectItemInstance
> projectItems, PropertyDictionary<ProjectPropertyInstance> properties)
124
private IItemDictionary<
ProjectItemInstance
> PrimaryTable
130
private ItemDictionary<
ProjectItemInstance
> PrimaryAddTable
136
private ItemDictionary<
ProjectItemInstance
> PrimaryRemoveTable
154
private IItemDictionary<
ProjectItemInstance
> SecondaryTable
160
private ItemDictionary<
ProjectItemInstance
> SecondaryAddTable
166
private ItemDictionary<
ProjectItemInstance
> SecondaryRemoveTable
321
foreach (
ProjectItemInstance
item in PrimaryRemoveTable)
340
foreach (KeyValuePair<string, Dictionary<
ProjectItemInstance
, MetadataModifications>> entry in PrimaryModifyTable)
342
Dictionary<
ProjectItemInstance
, MetadataModifications> modifiesOfType;
346
foreach (KeyValuePair<
ProjectItemInstance
, MetadataModifications> modify in entry.Value)
383
SecondaryTable ??= new ItemDictionary<
ProjectItemInstance
>();
389
SecondaryTable ??= new ItemDictionary<
ProjectItemInstance
>();
395
foreach (KeyValuePair<string, Dictionary<
ProjectItemInstance
, MetadataModifications>> entry in PrimaryModifyTable)
397
SecondaryTable ??= new ItemDictionary<
ProjectItemInstance
>();
465
public ICollection<
ProjectItemInstance
> GetItems(string itemType)
471
List<
ProjectItemInstance
> allAdds = null;
472
List<
ProjectItemInstance
> allRemoves = null;
473
Dictionary<
ProjectItemInstance
, MetadataModifications> allModifies = null;
474
ICollection<
ProjectItemInstance
> groupFound = null;
481
ICollection<
ProjectItemInstance
> adds = scope.Adds[itemType];
484
allAdds ??= new List<
ProjectItemInstance
>(adds.Count);
492
ICollection<
ProjectItemInstance
> removes = scope.Removes[itemType];
495
allRemoves ??= new List<
ProjectItemInstance
>(removes.Count);
503
Dictionary<
ProjectItemInstance
, MetadataModifications> modifies;
508
allModifies ??= new Dictionary<
ProjectItemInstance
, MetadataModifications>(modifies.Count);
511
foreach (KeyValuePair<
ProjectItemInstance
, MetadataModifications> modify in modifies)
543
groupFound ??= Array.Empty<
ProjectItemInstance
>();
562
ItemDictionary<
ProjectItemInstance
> result = new ItemDictionary<
ProjectItemInstance
>(itemsTypesCount, itemsCount);
598
internal void PopulateWithItems(string itemType, ICollection<
ProjectItemInstance
> group)
600
PrimaryTable ??= new ItemDictionary<
ProjectItemInstance
>();
601
ICollection<
ProjectItemInstance
> existing = PrimaryTable[itemType];
618
internal void PopulateWithItem(
ProjectItemInstance
item)
620
PrimaryTable ??= new ItemDictionary<
ProjectItemInstance
>();
640
internal void AddNewItemsOfItemType(string itemType, ICollection<
ProjectItemInstance
> group, bool doNotAddDuplicates = false, Action<IList> logFunction = null)
646
foreach (
ProjectItemInstance
item in group)
658
PrimaryAddTable ??= new ItemDictionary<
ProjectItemInstance
>();
659
IEnumerable<
ProjectItemInstance
> itemsToAdd = group;
664
var existingItemsHashSet = existingItems.ToHashSet(
ProjectItemInstance
.EqualityComparer);
666
var deduplicatedItemsToAdd = new List<
ProjectItemInstance
>();
667
foreach (
var
item in itemsToAdd)
682
logFunction.Invoke(itemsToAdd as List<
ProjectItemInstance
>);
686
var groupAsList = group as List<
ProjectItemInstance
>;
697
internal void AddNewItem(
ProjectItemInstance
item)
709
PrimaryAddTable ??= new ItemDictionary<
ProjectItemInstance
>();
716
internal void RemoveItems(IEnumerable<
ProjectItemInstance
> items)
718
foreach (
ProjectItemInstance
item in items)
727
internal void RemoveItem(
ProjectItemInstance
item)
735
PrimaryRemoveTable ??= new ItemDictionary<
ProjectItemInstance
>();
747
internal void ModifyItems(string itemType, ICollection<
ProjectItemInstance
> group, MetadataModifications metadataChanges)
760
foreach (
ProjectItemInstance
item in group)
762
ProjectItemInstance
actualItem = RetrieveOriginalFromCloneTable(item);
779
Dictionary<
ProjectItemInstance
, MetadataModifications> modifiesOfType;
782
modifiesOfType = new Dictionary<
ProjectItemInstance
, MetadataModifications>();
786
foreach (
ProjectItemInstance
item in group)
794
ProjectItemInstance
actualItem = RetrieveOriginalFromCloneTable(item);
795
var modify = new KeyValuePair<
ProjectItemInstance
, MetadataModifications>(actualItem, metadataChangeCopy);
808
private void ApplyModifies(ItemDictionary<
ProjectItemInstance
> result, Dictionary<
ProjectItemInstance
, MetadataModifications> allModifies)
815
_cloneTable ??= new Dictionary<
ProjectItemInstance
,
ProjectItemInstance
>();
819
ProjectItemInstance
originalItem = modify.Key;
826
ProjectItemInstance
cloneItem = modify.Key.DeepClone();
842
private static void ApplyMetadataModificationsToItem(MetadataModifications modificationsToApply,
ProjectItemInstance
itemToModify)
874
private
ProjectItemInstance
RetrieveOriginalFromCloneTable(
ProjectItemInstance
item)
876
ProjectItemInstance
original;
892
private void ApplyModificationsToTable(IItemDictionary<
ProjectItemInstance
> table, string itemType, ItemsMetadataUpdateDictionary modify)
894
ICollection<
ProjectItemInstance
> existing = table[itemType];
901
var
itemToModify = kvPair.Key;
915
private void MergeModificationsIntoModificationTable(Dictionary<
ProjectItemInstance
, MetadataModifications> modifiesOfType,
916
KeyValuePair<
ProjectItemInstance
, MetadataModifications> modify,
953
private void MustNotBeInTable(ItemDictionary<
ProjectItemInstance
> table,
ProjectItemInstance
item)
957
ICollection<
ProjectItemInstance
> tableOfItemsOfSameType = table[item.ItemType];
968
private void MustNotBeInTable(ItemTypeToItemsMetadataUpdateDictionary table,
ProjectItemInstance
item)
983
private void MustNotBeInAnyTables(
ProjectItemInstance
item)
1317
private IItemDictionary<
ProjectItemInstance
> _items;
1322
private ItemDictionary<
ProjectItemInstance
> _adds;
1327
private ItemDictionary<
ProjectItemInstance
> _removes;
1366
internal Scope(Lookup lookup, string description, IItemDictionary<
ProjectItemInstance
> items, PropertyDictionary<ProjectPropertyInstance> properties)
1386
internal IItemDictionary<
ProjectItemInstance
> Items
1394
internal ItemDictionary<
ProjectItemInstance
> Adds
1402
internal ItemDictionary<
ProjectItemInstance
> Removes
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
18
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\Components\RequestBuilder\TargetEntry.cs (5)
22
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
119
private Expander<ProjectPropertyInstance,
ProjectItemInstance
> _expander;
189
_expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(baseLookup, baseLookup, FileSystems.Default, loggingContext);
474
ItemDictionary<
ProjectItemInstance
> changedTargetInputs;
475
ItemDictionary<
ProjectItemInstance
> upToDateTargetInputs;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (22)
16
using ProjectItemInstanceFactory = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem.ProjectItemInstanceFactory;
23
using ItemVectorPartition = System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Build.Execution.
ProjectItemInstance
>>;
31
using ItemVectorPartitionCollection = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Build.Execution.
ProjectItemInstance
>>>;
134
out ItemDictionary<
ProjectItemInstance
> changedTargetInputs,
135
out ItemDictionary<
ProjectItemInstance
> upToDateTargetInputs)
592
out ItemDictionary<
ProjectItemInstance
> changedTargetInputs,
593
out ItemDictionary<
ProjectItemInstance
> upToDateTargetInputs)
597
changedTargetInputs = new ItemDictionary<
ProjectItemInstance
>();
598
upToDateTargetInputs = new ItemDictionary<
ProjectItemInstance
>();
614
foreach (IList<
ProjectItemInstance
> inputItems in inputItemVectors.Values)
621
List<
ProjectItemInstance
> upToDateInputItems = new List<
ProjectItemInstance
>(inputItems);
626
foreach (KeyValuePair<string, IList<
ProjectItemInstance
>> outputEntry in outputItemVectors)
628
IList<
ProjectItemInstance
> outputItems = outputEntry.Value;
686
foreach (
ProjectItemInstance
item in upToDateInputItems)
817
IList<
ProjectItemInstance
> itemVectorContents = bucket.Expander.ExpandSingleItemVectorExpressionIntoItems(item, itemFactory, ExpanderOptions.ExpandItems, true /* include null entries from transforms */, out bool isTransformExpression, elementLocation);
905
foreach (IList<
ProjectItemInstance
> items in itemVectorPartition.Values)
907
foreach (
ProjectItemInstance
item in items)
966
ErrorUtilities.VerifyThrow(inputs[0] is string || inputs[0] is
ProjectItemInstance
, "Must be either string or ProjectItemInstance");
971
ErrorUtilities.VerifyThrow(outputs[0] is string || outputs[0] is
ProjectItemInstance
, "Must be either string or ProjectItemInstance");
1086
ErrorUtilities.VerifyThrow(inputs[0] is string || inputs[0] is
ProjectItemInstance
, "Must be either string or ProjectItemInstance");
1091
ErrorUtilities.VerifyThrow(outputs[0] is string || outputs[0] is
ProjectItemInstance
, "Must be either string or ProjectItemInstance");
BackEnd\Components\RequestBuilder\TaskBuilder.cs (4)
26
using ProjectItemInstanceFactory = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem.ProjectItemInstanceFactory;
520
private IDictionary<string, string> GatherTaskIdentityParameters(Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander)
1032
foreach (
var
projectReferenceItem in projectReferenceItems)
1195
ICollection<
ProjectItemInstance
> items = bucket.Expander.ExpandIntoItemsLeaveEscaped(outputItemSpec, itemFactory, ExpanderOptions.ExpandItems, taskItemInstance.TaskParameterLocation);
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
25
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\Shared\TargetResult.cs (1)
13
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
25
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
1386
ProjectItemInstance
newItem;
Construction\Solution\SolutionProjectGenerator.cs (1)
1057
ProjectItemInstance
item;
Definition\Toolset.cs (3)
191
private Expander<ProjectPropertyInstance,
ProjectItemInstance
> _expander;
964
_expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(propertyBag, FileSystems.Default, loggingContext);
1038
TaskRegistry.InitializeTaskRegistryFromUsingTaskElements<ProjectPropertyInstance,
ProjectItemInstance
>(
Definition\ToolsetReader.cs (5)
452
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(initialProperties, FileSystems.Default);
521
private void EvaluateAndSetProperty(ToolsetPropertyDefinition property, PropertyDictionary<ProjectPropertyInstance> properties, PropertyDictionary<ProjectPropertyInstance> globalProperties, PropertyDictionary<ProjectPropertyInstance> initialProperties, bool accumulateProperties, ref string toolsPath, ref string binPath, ref Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander)
570
expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(initialProperties, FileSystems.Default);
578
private string ExpandPropertyUnescaped(ToolsetPropertyDefinition property, Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander)
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
10
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
Evaluation\ConditionEvaluator.cs (1)
15
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
Evaluation\Expander.cs (2)
27
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
28
using TaskItemFactory = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem.TaskItemFactory;
Graph\GraphBuilder.cs (11)
235
var
stubItem = new ProjectItemInstance(
647
private ConcurrentDictionary<(ProjectGraphNode, ProjectGraphNode),
ProjectItemInstance
> ReferenceItems =
648
new ConcurrentDictionary<(ProjectGraphNode, ProjectGraphNode),
ProjectItemInstance
>();
652
public
ProjectItemInstance
this[(ProjectGraphNode node, ProjectGraphNode reference) key]
656
ErrorUtilities.VerifyThrow(ReferenceItems.TryGetValue(key, out
ProjectItemInstance
referenceItem), "All requested keys should exist");
661
public void AddOrUpdateEdge((ProjectGraphNode node, ProjectGraphNode reference) key,
ProjectItemInstance
edge)
665
addValueFactory: static ((ProjectGraphNode node, ProjectGraphNode reference) key,
ProjectItemInstance
referenceItem) => referenceItem,
666
updateValueFactory: static ((ProjectGraphNode node, ProjectGraphNode reference) key,
ProjectItemInstance
existingItem,
ProjectItemInstance
newItem) =>
680
ProjectItemInstance
mergedItem = existingItem.DeepClone();
704
internal IReadOnlyDictionary<(ConfigurationMetadata, ConfigurationMetadata),
ProjectItemInstance
> TestOnly_AsConfigurationMetadata()
Graph\ProjectGraph.cs (1)
800
private static ImmutableList<string> ExpandDefaultTargets(ImmutableList<string> targets, List<string> defaultTargets,
ProjectItemInstance
graphEdge)
Graph\ProjectGraphNode.cs (1)
59
internal void AddProjectReference(ProjectGraphNode reference,
ProjectItemInstance
projectReferenceItem, GraphBuilder.GraphEdges edges)
Graph\ProjectInterpretation.cs (10)
56
internal readonly record struct ReferenceInfo(ConfigurationMetadata ReferenceConfiguration,
ProjectItemInstance
ProjectReferenceItem);
79
IEnumerable<
ProjectItemInstance
> projectReferenceItems;
108
foreach (
ProjectItemInstance
projectReferenceItem in projectReferenceItems)
262
ProjectItemInstance
newInnerBuildEdge = graphBuilder.Edges[(outerBuildReferencingProject, outerBuild)];
283
private static IEnumerable<
ProjectItemInstance
> ConstructInnerBuildReferences(ProjectInstance outerBuild)
310
ProjectItemInstance
projectReference)
370
private delegate GlobalPropertyPartsForMSBuildTask GlobalPropertiesModifier(GlobalPropertyPartsForMSBuildTask defaultParts,
ProjectItemInstance
projectReference);
380
ProjectItemInstance
projectReference,
497
ICollection<
ProjectItemInstance
> projectReferenceTargets = project.GetItems(ItemTypeNames.ProjectReferenceTargets);
501
foreach (
ProjectItemInstance
projectReferenceTarget in projectReferenceTargets)
Instance\ProjectInstance.cs (110)
32
using ProjectItemInstanceFactory = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem.ProjectItemInstanceFactory;
77
public class ProjectInstance : IPropertyProvider<ProjectPropertyInstance>, IItemProvider<
ProjectItemInstance
>, IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>, ITranslatable
131
private IItemDictionary<
ProjectItemInstance
> _items;
136
private IMultiDictionary<string,
ProjectItemInstance
> _itemsByEvaluatedInclude;
450
_itemsByEvaluatedInclude = new ImmutableLinkedMultiDictionaryConverter<string, ProjectItem,
ProjectItemInstance
>(
540
_items = new ItemDictionary<
ProjectItemInstance
>(); // We don't want any of the items. That would include things like ProjectReferences, which would just pollute our own.
560
IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance> thisAsIEvaluatorData = this;
718
_items = new ItemDictionary<
ProjectItemInstance
>(that._items.Count);
720
foreach (
ProjectItemInstance
item in that.Items)
742
((IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance,
744
((IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance,
746
((IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance,
748
((IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance,
811
_items = new ItemDictionary<
ProjectItemInstance
>(that.Items.Count);
815
foreach (
var
actualItem in that.GetItems(itemFilter.Key))
817
var
filteredItem = actualItem.DeepClone(this);
919
private static ImmutableItemDictionary<ProjectItem,
ProjectItemInstance
> GetImmutableItemsDictionaryFromImmutableProject(
929
Func<ProjectItem,
ProjectItemInstance
> convertCachedItemToInstance =
932
var itemDictionary = new ImmutableItemDictionary<ProjectItem,
ProjectItemInstance
>(
941
private static
ProjectItemInstance
ConvertCachedProjectItemToInstance(
946
ProjectItemInstance
result = null;
947
if (projectItem is IImmutableInstanceProvider<
ProjectItemInstance
> instanceProvider)
952
var
newInstance = InstantiateProjectItemInstanceFromImmutableProjectSource(
1114
bool IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.CanEvaluateElementsWithFalseConditions => false;
1134
public ICollection<
ProjectItemInstance
> Items
1140
(ICollection<
ProjectItemInstance
>)ReadOnlyEmptyCollection<
ProjectItemInstance
>.Instance :
1141
new ReadOnlyCollection<
ProjectItemInstance
>(_items);
1281
TaskRegistry IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.TaskRegistry
1298
Toolset IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Toolset
1309
string IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SubToolsetVersion
1323
string IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ExplicitToolsVersion
1333
PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GlobalPropertiesDictionary
1340
PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.EnvironmentVariablePropertiesDictionary
1348
ISet<string> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GlobalPropertiesToTreatAsLocal
1364
PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Properties
1374
IEnumerable<ProjectItemDefinitionInstance> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ItemDefinitionsEnumerable
1384
IItemDictionary<
ProjectItemInstance
> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Items
1395
List<string> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.InitialTargets
1413
List<string> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.DefaultTargets
1431
IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.BeforeTargets
1441
IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AfterTargets
1454
Dictionary<string, List<string>> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ConditionedProperties
1468
bool IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ShouldEvaluateForDesignTime
1566
internal IItemDictionary<
ProjectItemInstance
> ItemsToBuildWith
1610
public static string GetEvaluatedItemIncludeEscaped(
ProjectItemInstance
item)
1641
public static string GetMetadataValueEscaped(
ProjectItemInstance
item, string name)
1676
ICollection<
ProjectItemInstance
> IItemProvider<
ProjectItemInstance
>.GetItems(string itemType)
1685
void IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.
1695
void IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.FinishEvaluation()
1705
void IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItem(
ProjectItemInstance
item)
1716
void IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItemIgnoringCondition(
ProjectItemInstance
item)
1725
IItemDefinition<ProjectMetadataInstance> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddItemDefinition(string itemType)
1743
void IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedPropertiesList(ProjectPropertyInstance property)
1757
void IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedItemDefinitionMetadataList(ProjectMetadataInstance itemDefinitionMetadatum)
1771
void IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddToAllEvaluatedItemsList(
ProjectItemInstance
item)
1779
IItemDefinition<ProjectMetadataInstance> IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GetItemDefinition(string itemType)
1794
ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable)
1807
ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext)
1818
ProjectTargetInstance IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GetTarget(string targetName)
1831
void IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddTarget(ProjectTargetInstance target)
1839
void IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.RecordImport(
1846
((IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).RecordImportWithDuplicates(importElement, import, versionEvaluated);
1852
void IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.RecordImportWithDuplicates(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated)
1949
public
ProjectItemInstance
AddItem(string itemType, string evaluatedInclude)
1953
ProjectItemInstance
item = new ProjectItemInstance(this, itemType, evaluatedInclude, this.FullPath);
1972
public
ProjectItemInstance
AddItem(string itemType, string evaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
1976
ProjectItemInstance
item = new ProjectItemInstance(this, itemType, evaluatedInclude, metadata, this.FullPath);
1987
public ICollection<
ProjectItemInstance
> GetItems(string itemType)
1990
return ((IItemProvider<
ProjectItemInstance
>)this).GetItems(itemType);
1996
public IEnumerable<
ProjectItemInstance
> GetItemsByItemTypeAndEvaluatedInclude(string itemType, string evaluatedInclude)
2001
foreach (
var
item in GetItems(itemType))
2011
foreach (
var
item in GetItemsByEvaluatedInclude(evaluatedInclude))
2025
public bool RemoveItem(
ProjectItemInstance
item)
2238
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(this, this, FileSystems.Default, _loggingContext);
2256
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(this, this, FileSystems.Default, _loggingContext);
2294
foreach (
ProjectItemInstance
item in _items.GetItems(itemType))
2335
_items = new ItemDictionary<
ProjectItemInstance
>(projectState._items);
2491
_items = new ItemDictionary<
ProjectItemInstance
>(typeCount);
2498
ProjectItemInstance
item = null;
2499
translator.Translate(ref item, delegate { return
ProjectItemInstance
.FactoryForDeserialization(translator, this); });
2511
ICollection<
ProjectItemInstance
> itemList = _items[itemType];
2514
foreach (
ProjectItemInstance
item in itemList)
2516
ProjectItemInstance
temp = item;
2517
translator.Translate(ref temp, delegate { return
ProjectItemInstance
.FactoryForDeserialization(translator, this); });
2743
if (((IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).BeforeTargets.TryGetValue(target, out beforeTargetsForTarget))
2760
if (((IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).AfterTargets.TryGetValue(target, out afterTargetsForTarget))
3091
_items = new ItemDictionary<
ProjectItemInstance
>();
3171
Evaluator<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Evaluate(
3195
private IEnumerable<
ProjectItemInstance
> GetItemsByEvaluatedInclude(string evaluatedInclude)
3224
((IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).BeforeTargets = CreateCloneDictionary(beforeTargets, StringComparer.OrdinalIgnoreCase);
3225
((IEvaluatorData<ProjectPropertyInstance,
ProjectItemInstance
, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).AfterTargets = CreateCloneDictionary(afterTargets, StringComparer.OrdinalIgnoreCase);
3289
private void CreateEvaluatedIncludeSnapshotIfRequested(bool keepEvaluationCache, ICollection<ProjectItem> items, Dictionary<ProjectItem,
ProjectItemInstance
> projectItemToInstanceMap)
3296
var multiDictionary = new MultiDictionary<string,
ProjectItemInstance
>(StringComparer.OrdinalIgnoreCase);
3308
private Dictionary<ProjectItem,
ProjectItemInstance
> CreateItemsSnapshot(ICollection<ProjectItem> items, int itemTypeCount, bool keepEvaluationCache)
3310
_items = new ItemDictionary<
ProjectItemInstance
>(itemTypeCount);
3312
var projectItemToInstanceMap = keepEvaluationCache ? new Dictionary<ProjectItem,
ProjectItemInstance
>(items.Count) : null;
3316
ProjectItemInstance
instance = InstantiateProjectItemInstance(item);
3324
private
ProjectItemInstance
InstantiateProjectItemInstance(ProjectItem item)
3353
var
instance = new ProjectItemInstance(
3378
private static
ProjectItemInstance
InstantiateProjectItemInstanceFromImmutableProjectSource(
3412
ProjectItemInstance
instance = new ProjectItemInstance(
Instance\ProjectItemInstance.cs (34)
139
private ProjectItemInstance(
ProjectItemInstance
that)
147
private ProjectItemInstance(
ProjectItemInstance
that, ProjectInstance newProject)
345
internal static IEqualityComparer<
ProjectItemInstance
> EqualityComparer
603
internal static void SetMetadata(IEnumerable<KeyValuePair<string, string>> metadataList, IEnumerable<
ProjectItemInstance
> items)
611
foreach (
ProjectItemInstance
item in items)
620
internal static
ProjectItemInstance
FactoryForDeserialization(ITranslator translator, ProjectInstance projectInstance)
622
ProjectItemInstance
newItem = new ProjectItemInstance(projectInstance);
658
internal
ProjectItemInstance
DeepClone()
667
internal
ProjectItemInstance
DeepClone(ProjectInstance newProject)
849
/// Creates a task item by copying the information from a <see cref="
ProjectItemInstance
"/>.
852
internal TaskItem(
ProjectItemInstance
item)
1337
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(null, null, new BuiltInMetadataTable(null, this), FileSystems.Default);
1965
internal class ProjectItemInstanceFactory : IItemFactory<
ProjectItemInstance
,
ProjectItemInstance
>
2016
public
ProjectItemInstance
CreateItem(string include, string definingProject)
2020
ProjectItemInstance
item = new ProjectItemInstance(_project, ItemType, include, definingProject);
2030
public
ProjectItemInstance
CreateItem(
ProjectItemInstance
source, string definingProject)
2040
public
ProjectItemInstance
CreateItem(string includeEscaped,
ProjectItemInstance
source, string definingProject)
2049
public
ProjectItemInstance
CreateItem(string evaluatedInclude, string evaluatedIncludeBeforeWildcardExpansion, string definingProject)
2059
public void SetMetadata(IEnumerable<KeyValuePair<ProjectMetadataElement, string>> metadataList, IEnumerable<
ProjectItemInstance
> destinationItems)
2066
foreach (
ProjectItemInstance
item in destinationItems)
2075
private
ProjectItemInstance
CreateItem(string includeEscaped, string includeBeforeWildcardExpansionEscaped,
ProjectItemInstance
source, string definingProject)
2110
internal class TaskItemFactory : IItemFactory<ProjectItem, TaskItem>, IItemFactory<
ProjectItemInstance
, TaskItem>
2189
public TaskItem CreateItem(
ProjectItemInstance
source, string definingProject)
2199
public TaskItem CreateItem(string includeEscaped,
ProjectItemInstance
baseItem, string definingProject)
2303
internal class ProjectItemInstanceEqualityComparer : IEqualityComparer<
ProjectItemInstance
>
2320
public static IEqualityComparer<
ProjectItemInstance
> Default
2331
public bool Equals(
ProjectItemInstance
x,
ProjectItemInstance
y)
2341
public int GetHashCode(
ProjectItemInstance
obj)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
953
if (items is ItemDictionary<
ProjectItemInstance
> itemInstanceDictionary)
ObjectModelRemoting\LinkedObjectFactory.cs (5)
241
private class LinkedProjectItem : ProjectItem, ILinkableObject, IImmutableInstanceProvider<
ProjectItemInstance
>
243
private
ProjectItemInstance
_immutableInstance;
251
public
ProjectItemInstance
ImmutableInstance => _immutableInstance;
253
public
ProjectItemInstance
GetOrSetImmutableInstance(
ProjectItemInstance
instance)
Utilities\Utilities.cs (2)
716
if (items is ItemDictionary<
ProjectItemInstance
> projectItemInstanceDictionary)
747
if (items is ItemDictionary<
ProjectItemInstance
> projectItemInstanceDictionary)
Microsoft.Build.Engine.OM.UnitTests (61)
Definition\ProjectItemDefinition_Tests.cs (2)
459
ProjectItemInstance
item1 = instance.GetItems("i").ElementAt(0);
462
ProjectItemInstance
item2 = instance.GetItems("i").ElementAt(1);
Instance\ProjectInstance_Tests.cs (14)
66
IList<
ProjectItemInstance
> items = Helpers.MakeList(p.GetItems("i"));
86
ProjectItemInstance
returned = p.AddItem("i", "i1");
92
foreach (
ProjectItemInstance
item in p.Items)
107
ProjectItemInstance
returned = p.AddItem("i", "i%3b1");
113
foreach (
ProjectItemInstance
item in p.Items)
133
ProjectItemInstance
returned = p.AddItem("i", "i1", metadata);
137
foreach (
ProjectItemInstance
item in p.Items)
192
ProjectItemInstance
item = p.AddItem("i", "i1", null);
429
var
projBInstanceItem = projBInstance.GetItemsByItemTypeAndEvaluatedInclude("Compile", "bItem.cs").Single();
430
var
projAInstanceItem = projBInstance.GetItemsByItemTypeAndEvaluatedInclude("Compile", "aItem.cs").Single();
471
var
projBInstanceItem = projBInstance.GetItemsByItemTypeAndEvaluatedInclude("Compile", "bItem.cs").Single();
472
var
projAInstanceItem = projBInstance.GetItemsByItemTypeAndEvaluatedInclude("Compile", "aItem.cs").Single();
513
var
projAInstanceItem = projBInstance.GetItemsByItemTypeAndEvaluatedInclude("Compile", "aItem.cs").Single();
514
var
projBInstanceItem = projBInstance.GetItemsByItemTypeAndEvaluatedInclude("CompileB", "aItem.cs").Single();
Instance\ProjectItemInstance_Tests.cs (44)
81
ProjectItemInstance
item = GetItemInstance();
94
ProjectItemInstance
item = GetItemInstance();
112
ProjectItemInstance
item = GetItemInstance();
132
ProjectItemInstance
item = GetItemInstance();
155
ProjectItemInstance
item = GetItemInstance();
163
ProjectItemInstance
fromItem = GetItemInstance();
216
ProjectItemInstance
item = GetItemInstance();
229
ProjectItemInstance
item = GetItemInstance();
241
ProjectItemInstance
item = GetItemInstance();
257
ProjectItemInstance
item = projectInstance.AddItem("i", "i1", metadata);
267
ProjectItemInstance
item = GetItemInstance();
278
ProjectItemInstance
item = GetItemInstance();
290
ProjectItemInstance
item = GetItemInstance();
303
ProjectItemInstance
item = GetItemInstance();
315
ProjectItemInstance
item = GetItemInstance();
325
ProjectItemInstance
item = GetItemInstance();
349
ProjectItemInstance
item = projectInstance.AddItem("EscapedItem", "esca%20ped%3bitem");
420
ProjectItemInstance
item = GetItemInstance();
450
ProjectItemInstance
item = GetOneItem(content);
476
ProjectItemInstance
item = GetOneItem(content);
518
ProjectItemInstance
item = GetOneItem(content);
552
ProjectItemInstance
item = GetOneItem(content);
582
IList<
ProjectItemInstance
> items = GetItems(content);
610
IList<
ProjectItemInstance
> items = GetItems(content);
634
ProjectItemInstance
item = GetOneItem(content);
659
ProjectItemInstance
item = GetOneItem(content);
680
ProjectItemInstance
item = GetOneItem(content);
701
ProjectItemInstance
item = GetOneItem(content);
723
ProjectItemInstance
item = GetOneItem(content);
764
IList<
ProjectItemInstance
> items = GetItems(content);
791
IList<
ProjectItemInstance
> items = GetItems(content);
816
IList<
ProjectItemInstance
> items = GetItems(content);
841
IList<
ProjectItemInstance
> items = GetItems(content);
866
IList<
ProjectItemInstance
> items = GetItems(content);
891
IList<
ProjectItemInstance
> items = GetItems(content);
915
IList<
ProjectItemInstance
> items = GetItems(content);
939
IList<
ProjectItemInstance
> items = GetItems(content);
963
IList<
ProjectItemInstance
> items = GetItems(content);
1160
private static
ProjectItemInstance
GetOneItem(string content)
1168
private static IList<
ProjectItemInstance
> GetItems(string content)
1180
private static void AssertEvaluatedIncludes(IList<
ProjectItemInstance
> items, string[] includes)
1191
private static
ProjectItemInstance
GetItemInstance()
1195
ProjectItemInstance
item = projectInstance.AddItem("i", "i1");
1199
private static void AssertItemHasMetadata(Dictionary<string, string> expected,
ProjectItemInstance
item)
Instance\ProjectMetadataInstance_Tests.cs (1)
36
ProjectItemInstance
item = projectInstance.AddItem("i", "i1");
Microsoft.Build.Engine.UnitTests (670)
BackEnd\BatchingEngine_Tests.cs (25)
17
using ProjectItemInstanceFactory = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem.ProjectItemInstanceFactory;
34
ItemDictionary<
ProjectItemInstance
> itemsByType = new ItemDictionary<
ProjectItemInstance
>();
36
IList<
ProjectItemInstance
> items = new List<
ProjectItemInstance
>();
44
items = new List<
ProjectItemInstance
>();
131
ItemDictionary<
ProjectItemInstance
> itemsByType = new ItemDictionary<
ProjectItemInstance
>();
133
List<
ProjectItemInstance
> items = new List<
ProjectItemInstance
>();
135
ProjectItemInstance
a = new ProjectItemInstance(project, "File", "a.foo", project.FullPath);
136
ProjectItemInstance
b = new ProjectItemInstance(project, "File", "b.foo", project.FullPath);
168
ItemDictionary<
ProjectItemInstance
> itemsByType = new ItemDictionary<
ProjectItemInstance
>();
170
List<
ProjectItemInstance
> items = new List<
ProjectItemInstance
>();
172
ProjectItemInstance
a = new ProjectItemInstance(project, "File", "a.foo", project.FullPath);
174
ProjectItemInstance
b = new ProjectItemInstance(project, "File", "b.foo", project.FullPath);
204
ItemDictionary<
ProjectItemInstance
> itemsByType = new ItemDictionary<
ProjectItemInstance
>();
229
ItemDictionary<
ProjectItemInstance
> itemsByType = new ItemDictionary<
ProjectItemInstance
>();
231
List<
ProjectItemInstance
> items = new List<
ProjectItemInstance
>();
530
private static Lookup CreateLookup(ItemDictionary<
ProjectItemInstance
> itemsByType, PropertyDictionary<ProjectPropertyInstance> properties)
BackEnd\BuildManager_Tests.cs (1)
2272
foreach (
var
item in instance.Items)
BackEnd\BuildRequestEngine_Tests.cs (1)
16
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\BuildResult_Tests.cs (1)
15
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\CacheSerialization_Tests.cs (5)
55
Array.Empty<
ProjectItemInstance
.TaskItem>(),
60
Array.Empty<
ProjectItemInstance
.TaskItem>(),
65
Array.Empty<
ProjectItemInstance
.TaskItem>(),
71
Array.Empty<
ProjectItemInstance
.TaskItem>(),
77
Array.Empty<
ProjectItemInstance
.TaskItem>(),
BackEnd\IntrinsicTask_Tests.cs (46)
250
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
251
ICollection<
ProjectItemInstance
> i2Group = lookup.GetItems("i2");
702
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
725
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
751
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
822
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
823
ICollection<
ProjectItemInstance
> i2Group = lookup.GetItems("i2");
846
ICollection<
ProjectItemInstance
> i2Group = lookup.GetItems("i2");
867
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
868
ICollection<
ProjectItemInstance
> i2Group = lookup.GetItems("i2");
891
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
892
ICollection<
ProjectItemInstance
> i2Group = lookup.GetItems("i2");
1002
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
1003
ICollection<
ProjectItemInstance
> i2Group = lookup.GetItems("i2");
1029
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
1030
ICollection<
ProjectItemInstance
> i2Group = lookup.GetItems("i2");
1063
ICollection<
ProjectItemInstance
> i2Group = lookup.GetItems("i2");
1120
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
1121
ICollection<
ProjectItemInstance
> i2Group = lookup.GetItems("i2");
2053
ICollection<
ProjectItemInstance
> items = lookup.GetItems("I2");
2088
ICollection<
ProjectItemInstance
> items = lookup.GetItems("I3");
2147
ICollection<
ProjectItemInstance
> i0Group = lookup.GetItems("i0");
2228
ICollection<
ProjectItemInstance
> i1Group = lookup.GetItems("i1");
2271
ICollection<
ProjectItemInstance
> linkGroup = lookup.GetItems("link");
2856
ProjectItemInstance
item = lookup.GetItems("i1").First();
2914
ProjectItemInstance
item = lookup.GetItems("i1").First();
2965
ProjectItemInstance
item1 = lookup.GetItems("i1").First();
2966
ProjectItemInstance
item2 = lookup.GetItems("i1").ElementAt(1);
2995
ProjectItemInstance
item1 = lookup.GetItems("i1").First();
2996
ProjectItemInstance
item2 = lookup.GetItems("i1").ElementAt(1);
3044
ProjectItemInstance
item1 = lookup.GetItems("i1").First();
3045
ProjectItemInstance
item2 = lookup.GetItems("i1").ElementAt(1);
3075
ProjectItemInstance
item1 = lookup.GetItems("i1").First();
3076
ProjectItemInstance
item2 = lookup.GetItems("i1").ElementAt(1);
3115
ICollection<
ProjectItemInstance
> i0Group = lookup.GetItems("i0");
3118
foreach (
ProjectItemInstance
item in i0Group)
3205
ProjectItemInstance
item = p.ItemsToBuildWith["i0"].First();
3925
List<
ProjectItemInstance
> items = new List<
ProjectItemInstance
>();
3926
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i0", "a1", project.FullPath);
3927
ProjectItemInstance
item2 = new ProjectItemInstance(project, "i0", "a2", project.FullPath);
3928
ProjectItemInstance
item3 = new ProjectItemInstance(project, "i0", "a3", project.FullPath);
3929
ProjectItemInstance
item4 = new ProjectItemInstance(project, "i0", "a4", project.FullPath);
3942
ItemDictionary<
ProjectItemInstance
> itemsByName = new ItemDictionary<
ProjectItemInstance
>();
4001
var lookup = new Lookup(new ItemDictionary<
ProjectItemInstance
>(), new PropertyDictionary<ProjectPropertyInstance>());
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
22
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\Lookup_Tests.cs (117)
28
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
50
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
83
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
153
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
163
ProjectItemInstance
[] newItems = new
ProjectItemInstance
[]
203
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
213
ProjectItemInstance
[] newItems = new
ProjectItemInstance
[]
254
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
255
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a1", project.FullPath);
264
ProjectItemInstance
item2 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
304
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
306
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
359
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
366
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
401
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
407
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
416
ICollection<
ProjectItemInstance
> group = lookup.GetItems(item1.ItemType);
465
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
471
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
481
ICollection<
ProjectItemInstance
> group = lookup.GetItems(item1.ItemType);
525
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
531
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
541
ICollection<
ProjectItemInstance
> group = lookup.GetItems(item1.ItemType);
596
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
602
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
612
ICollection<
ProjectItemInstance
> group = lookup.GetItems(item1.ItemType);
663
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
669
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
679
ICollection<
ProjectItemInstance
> group = lookup.GetItems(item1.ItemType);
718
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
724
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
733
ICollection<
ProjectItemInstance
> group = lookup.GetItems(item1.ItemType);
766
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
772
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
781
ICollection<
ProjectItemInstance
> group = new List<
ProjectItemInstance
>();
822
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
826
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
836
ICollection<
ProjectItemInstance
> group = new List<
ProjectItemInstance
>();
863
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
867
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
876
ICollection<
ProjectItemInstance
> group = new List<
ProjectItemInstance
>();
898
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
902
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
911
ICollection<
ProjectItemInstance
> group = lookup.GetItems("i1");
921
group = new List<
ProjectItemInstance
>();
926
ICollection<
ProjectItemInstance
> foundGroup = lookup.GetItems("i1");
969
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
975
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
982
ICollection<
ProjectItemInstance
> group = new List<
ProjectItemInstance
>();
1015
Lookup lookup = LookupHelpers.CreateLookup(new ItemDictionary<
ProjectItemInstance
>());
1026
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
1030
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
1039
ICollection<
ProjectItemInstance
> group = new List<
ProjectItemInstance
>();
1044
ICollection<
ProjectItemInstance
> group2 = lookup.GetItems(item1.ItemType);
1046
ProjectItemInstance
item1b = group2.First();
1051
ICollection<
ProjectItemInstance
> group3 = new List<
ProjectItemInstance
>();
1056
ICollection<
ProjectItemInstance
> group4 = lookup.GetItems(item1b.ItemType);
1064
ICollection<
ProjectItemInstance
> group5 = lookup.GetItems(item1b.ItemType);
1078
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
1079
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
1090
List<
ProjectItemInstance
> group = new List<
ProjectItemInstance
>();
1095
ICollection<
ProjectItemInstance
> group2 = lookup.GetItems(item1.ItemType);
1097
ProjectItemInstance
item1b = group2.First();
1102
List<
ProjectItemInstance
> group3 = new List<
ProjectItemInstance
>();
1107
ICollection<
ProjectItemInstance
> group4 = lookup.GetItems(item1b.ItemType);
1115
ICollection<
ProjectItemInstance
> group5 = lookup.GetItems(item1b.ItemType);
1130
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
1134
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
1143
List<
ProjectItemInstance
> group = new List<
ProjectItemInstance
>();
1148
ICollection<
ProjectItemInstance
> group2 = lookup.GetItems(item1.ItemType);
1150
ProjectItemInstance
item1b = group2.First();
1156
ICollection<
ProjectItemInstance
> group3 = lookup.GetItems(item1.ItemType);
1168
ItemDictionary<
ProjectItemInstance
> table1 = new ItemDictionary<
ProjectItemInstance
>();
1169
ProjectItemInstance
item1 = new ProjectItemInstance(project, "i1", "a2", project.FullPath);
1180
List<
ProjectItemInstance
> group = new List<
ProjectItemInstance
>();
1185
ICollection<
ProjectItemInstance
> group2 = lookup.GetItems(item1.ItemType);
1187
ProjectItemInstance
item1b = group2.First();
1193
ICollection<
ProjectItemInstance
> group3 = lookup.GetItems(item1.ItemType);
1292
Lookup lookup = new Lookup(new ItemDictionary<
ProjectItemInstance
>(), new PropertyDictionary<ProjectPropertyInstance>());
1296
internal static Lookup CreateLookup(ItemDictionary<
ProjectItemInstance
> items)
1304
Lookup lookup = new Lookup(new ItemDictionary<
ProjectItemInstance
>(), properties);
1308
internal static Lookup CreateLookup(PropertyDictionary<ProjectPropertyInstance> properties, ItemDictionary<
ProjectItemInstance
> items)
BackEnd\MockLoggingService.cs (1)
16
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\NodePackets_Tests.cs (1)
15
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\RequestBuilder_Tests.cs (1)
16
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\Scheduler_Tests.cs (1)
16
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\TargetBuilder_Tests.cs (1)
1572
Lookup lookup = new Lookup(new ItemDictionary<
ProjectItemInstance
>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
BackEnd\TargetEntry_Tests.cs (3)
85
Lookup lookup = new Lookup(new ItemDictionary<
ProjectItemInstance
>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
115
Lookup lookup = new Lookup(new ItemDictionary<
ProjectItemInstance
>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
1030
Lookup lookup = new Lookup(new ItemDictionary<
ProjectItemInstance
>(project.Items), new PropertyDictionary<ProjectPropertyInstance>(project.Properties));
BackEnd\TargetResult_Tests.cs (1)
11
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\TargetUpToDateChecker_Tests.cs (25)
182
List<
ProjectItemInstance
> items = new List<
ProjectItemInstance
>();
186
ItemDictionary<
ProjectItemInstance
> itemsByName = new ItemDictionary<
ProjectItemInstance
>();
224
List<
ProjectItemInstance
> items = new List<
ProjectItemInstance
>();
229
ItemDictionary<
ProjectItemInstance
> itemsByName = new ItemDictionary<
ProjectItemInstance
>();
271
List<
ProjectItemInstance
> items = new List<
ProjectItemInstance
>();
279
ItemDictionary<
ProjectItemInstance
> itemsByName = new ItemDictionary<
ProjectItemInstance
>();
282
ItemDictionary<
ProjectItemInstance
> changedTargetInputs = new ItemDictionary<
ProjectItemInstance
>();
283
ItemDictionary<
ProjectItemInstance
> upToDateTargetInputs = new ItemDictionary<
ProjectItemInstance
>();
286
foreach (
ProjectItemInstance
itemInstance in changedTargetInputs)
557
ItemDictionary<
ProjectItemInstance
> itemsByName,
561
ItemDictionary<
ProjectItemInstance
> h1 = new ItemDictionary<
ProjectItemInstance
>();
562
ItemDictionary<
ProjectItemInstance
> h2 = new ItemDictionary<
ProjectItemInstance
>();
568
ItemDictionary<
ProjectItemInstance
> itemsByName,
571
out ItemDictionary<
ProjectItemInstance
> changedTargetInputs,
572
out ItemDictionary<
ProjectItemInstance
> upToDateTargetInputs)
BackEnd\TaskExecutionHost_Tests.cs (5)
25
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
1271
ItemDictionary<
ProjectItemInstance
> itemsByName = new ItemDictionary<
ProjectItemInstance
>();
1273
ProjectItemInstance
item = new ProjectItemInstance(project, "ItemListContainingOneItem", "a.cs", ".");
1279
ProjectItemInstance
item2 = new ProjectItemInstance(project, "ItemListContainingTwoItems", "c.cs", ".");
BackEnd\TaskHost_Tests.cs (1)
18
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
BackEnd\TaskRegistry_Tests.cs (22)
46
private static Expander<ProjectPropertyInstance,
ProjectItemInstance
> s_registryExpander;
2167
internal static Expander<ProjectPropertyInstance,
ProjectItemInstance
> RegistryExpander => s_registryExpander ?? (s_registryExpander = GetExpander());
2201
internal static Expander<ProjectPropertyInstance,
ProjectItemInstance
> GetExpander()
2214
List<
ProjectItemInstance
> intermediateAssemblyItemGroup = new List<
ProjectItemInstance
>();
2215
ProjectItemInstance
iag = new ProjectItemInstance(project, "IntermediateAssembly", @"subdir1\engine.dll", project.FullPath);
2223
List<
ProjectItemInstance
> firstItemGroup = new List<
ProjectItemInstance
>();
2226
ProjectItemInstance
fig = new ProjectItemInstance(project, "FirstItem" + i, "FirstValue" + i, project.FullPath);
2230
List<
ProjectItemInstance
> secondItemGroup = new List<
ProjectItemInstance
>();
2233
ProjectItemInstance
sig = new ProjectItemInstance(project, "SecondItem" + i, "SecondValue" + i, project.FullPath);
2237
List<
ProjectItemInstance
> thirdItemGroup = new List<
ProjectItemInstance
>();
2238
ProjectItemInstance
tig = new ProjectItemInstance(project, "ThirdItem", "ThirdValue1", project.FullPath);
2241
List<
ProjectItemInstance
> trueItemGroup = new List<
ProjectItemInstance
>();
2242
ProjectItemInstance
trig = new ProjectItemInstance(project, "ItemWithTrueItem", "true", project.FullPath);
2245
ItemDictionary<
ProjectItemInstance
> secondaryItemsByName = new ItemDictionary<
ProjectItemInstance
>();
2252
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(
BuildResultUtilities.cs (1)
7
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
Collections\OMcollections_tests.cs (18)
108
ItemDictionary<
ProjectItemInstance
> items = new ItemDictionary<
ProjectItemInstance
>();
114
using (IEnumerator<
ProjectItemInstance
> enumerator = items.GetEnumerator())
124
List<
ProjectItemInstance
> list = new List<
ProjectItemInstance
>();
125
foreach (
ProjectItemInstance
item in items)
133
ICollection<
ProjectItemInstance
> itemList = items["x"];
136
foreach (
ProjectItemInstance
item in items)
144
ProjectItemInstance
item1 = GetItemInstance("i", "i1");
152
ProjectItemInstance
item2 = GetItemInstance("i", "i2");
154
ProjectItemInstance
item3 = GetItemInstance("j", "j1");
158
list = new List<
ProjectItemInstance
>();
159
foreach (
ProjectItemInstance
item in items)
170
using (IEnumerator<
ProjectItemInstance
> enumerator = items.GetEnumerator())
321
private static
ProjectItemInstance
GetItemInstance(string itemType, string evaluatedInclude)
325
ProjectItemInstance
item = projectInstance.AddItem(itemType, evaluatedInclude);
353
private int ProjectItemInstanceComparer(
ProjectItemInstance
one,
ProjectItemInstance
two)
ConsoleLogger_Tests.cs (1)
22
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
Construction\SolutionProjectGenerator_Tests.cs (3)
2851
IEnumerable<
ProjectItemInstance
> itemGroup = msbuildProject.GetItems(itemType);
2854
foreach (
ProjectItemInstance
item in itemGroup)
2871
IEnumerable<
ProjectItemInstance
> itemGroup = msbuildProject.GetItems(itemType);
Definition\ItemDefinitionGroup_Tests.cs (2)
16
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
683
foreach (
ProjectItemInstance
item in pi.GetItems("ItemA"))
EscapingInProjects_Tests.cs (1)
653
IEnumerable<
ProjectItemInstance
> items = projectInstance.GetItems("ProjectFile");
Evaluation\Evaluator_Tests.cs (2)
4462
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(propertyBag, FileSystems.Default);
Evaluation\Expander_Tests.cs (303)
31
using ProjectItemInstanceFactory = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem.ProjectItemInstanceFactory;
32
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
47
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
58
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
69
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
85
List<
ProjectItemInstance
> ig = new List<
ProjectItemInstance
>();
89
List<
ProjectItemInstance
> ig2 = new List<
ProjectItemInstance
>();
92
ItemDictionary<
ProjectItemInstance
> itemsByType = new ItemDictionary<
ProjectItemInstance
>();
96
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(
121
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
145
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
148
IList<
ProjectItemInstance
> itemsOut = expander.ExpandIntoItemsLeaveEscaped("foo$(a);$(b);$(c);$(d", itemFactory, ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
162
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
179
IList<
ProjectItemInstance
> items = expander.ExpandIntoItemsLeaveEscaped("@(i)", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
199
IList<
ProjectItemInstance
> items = expander.ExpandIntoItemsLeaveEscaped("@(i)", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
219
IList<
ProjectItemInstance
> itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->AnyHaveMetadataValue('Even', 'true'))", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
225
IList<
ProjectItemInstance
> itemsFalse = expander.ExpandIntoItemsLeaveEscaped("@(i->AnyHaveMetadataValue('Even', 'goop'))", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
236
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = CreateItemFunctionExpander();
239
IList<
ProjectItemInstance
> itemsEmpty = expander.ExpandIntoItemsLeaveEscaped("@(unsetItem->AnyHaveMetadataValue('Metadatum', 'value'))", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
240
ProjectItemInstance
pii = itemsEmpty.ShouldHaveSingleItem<
ProjectItemInstance
>();
257
IList<
ProjectItemInstance
> itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta0')->DirectoryName()->Distinct())", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
263
IList<
ProjectItemInstance
> itemsDir = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta9')->DirectoryName()->Distinct())", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
283
IList<
ProjectItemInstance
> itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta0')->Directory())", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
656
IList<
ProjectItemInstance
> itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->'%(Meta0)'->'%(Directory)')", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
694
IList<
ProjectItemInstance
> itemsTrue = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta0')->DirectoryName())", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
714
IList<
ProjectItemInstance
> items = expander.ExpandIntoItemsLeaveEscaped("@(i->Metadata('Meta10')->DirectoryName())", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
734
IList<
ProjectItemInstance
> items = expander.ExpandIntoItemsLeaveEscaped("@(i->ClearMetadata())", itemFactory, ExpanderOptions.ExpandItems, MockElementLocation.Instance);
745
private Expander<ProjectPropertyInstance,
ProjectItemInstance
> CreateItemFunctionExpander()
754
ItemDictionary<
ProjectItemInstance
> ig = new ItemDictionary<
ProjectItemInstance
>();
758
ProjectItemInstance
pi = new ProjectItemInstance(project, "i", "i" + n.ToString(), project.FullPath);
785
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, ig, itemMetadata, FileSystems.Default);
794
private Expander<ProjectPropertyInstance,
ProjectItemInstance
> CreateExpander()
801
ItemDictionary<
ProjectItemInstance
> ig = new ItemDictionary<
ProjectItemInstance
>();
802
ProjectItemInstance
i0 = new ProjectItemInstance(project, "i", "i0", project.FullPath);
803
ProjectItemInstance
i1 = new ProjectItemInstance(project, "i", "i1", project.FullPath);
807
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(
1368
List<
ProjectItemInstance
> intermediateAssemblyItemGroup = new List<
ProjectItemInstance
>();
1369
ProjectItemInstance
i1 = new ProjectItemInstance(project, "IntermediateAssembly",
1373
ProjectItemInstance
i2 = new ProjectItemInstance(project, "IntermediateAssembly",
1378
List<
ProjectItemInstance
> contentItemGroup = new List<
ProjectItemInstance
>();
1379
ProjectItemInstance
i3 = new ProjectItemInstance(project, "Content", "splash.bmp", project.FullPath);
1383
List<
ProjectItemInstance
> resourceItemGroup = new List<
ProjectItemInstance
>();
1384
ProjectItemInstance
i4 = new ProjectItemInstance(project, "Resource", "string$(p).resx", project.FullPath);
1387
ProjectItemInstance
i5 = new ProjectItemInstance(project, "Resource", "dialogs%253b.resx", project.FullPath);
1391
List<
ProjectItemInstance
> contentItemGroup2 = new List<
ProjectItemInstance
>();
1392
ProjectItemInstance
i6 = new ProjectItemInstance(project, "Content", "about.bmp", project.FullPath);
1396
ItemDictionary<
ProjectItemInstance
> secondaryItemsByName = new ItemDictionary<
ProjectItemInstance
>();
1420
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(lookup, lookup, itemMetadata, FileSystems.Default);
1452
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(lookup, lookup, itemMetadata, FileSystems.Default);
1505
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(lookup, lookup, itemMetadata, FileSystems.Default);
1531
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(lookup, lookup, itemMetadata, FileSystems.Default);
1553
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(lookup, lookup, itemMetadata, FileSystems.Default);
1579
var projectItemGroups = new ItemDictionary<
ProjectItemInstance
>();
1580
var itemGroup = new List<
ProjectItemInstance
>();
1583
var
item = new ProjectItemInstance(project, "ManyItems", $"ThisIsAFairlyLongFileName_{i}.bmp", project.FullPath);
1602
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(lookup, lookup, itemMetadata, FileSystems.Default);
1634
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(lookup, lookup, itemMetadata, FileSystems.Default);
1665
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(lookup, lookup, itemMetadata, FileSystems.Default);
1686
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(lookup, lookup, itemMetadata, FileSystems.Default);
1728
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
1744
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
1762
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
1779
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
1793
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
1815
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
1840
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
1863
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
1885
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
1907
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2002
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2017
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2037
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2053
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2069
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2085
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2101
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2117
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2133
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2150
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2167
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2184
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2202
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2220
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2236
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2251
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2267
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2284
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2302
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2319
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2355
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2373
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2390
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2407
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2424
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2440
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2456
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2471
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2484
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2500
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2519
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2536
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2552
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2576
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2595
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2618
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2647
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2681
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2697
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2715
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2733
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2749
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2765
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2780
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2796
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2814
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2839
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2854
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2884
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2914
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2936
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2952
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2968
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
2986
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3002
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3021
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3037
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3056
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3069
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3081
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3092
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3105
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3116
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3128
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3139
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3152
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3163
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3176
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3198
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3207
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3223
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3256
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3275
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3289
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3302
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3316
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3338
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3343
private void AssertThrows(Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander, string expression, string expectedMessage)
3354
private void AssertSuccess(Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander, object expected, string expression)
3372
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3395
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3429
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3472
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3488
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3507
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3522
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3537
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3558
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3608
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(new[]
3633
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3703
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3729
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3780
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3800
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3817
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3841
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3865
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3889
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3915
List<
ProjectItemInstance
> ig = new List<
ProjectItemInstance
>();
3919
ItemDictionary<
ProjectItemInstance
> itemsByType = new ItemDictionary<
ProjectItemInstance
>();
3922
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, itemsByType, itemMetadata, FileSystems.Default);
3959
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
3996
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
4025
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new(pg, FileSystems.Default);
4039
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new(pg, FileSystems.Default);
4051
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new(pg, FileSystems.Default);
4087
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
4350
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
4376
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(pg, FileSystems.Default);
4422
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default);
4434
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default);
4446
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default);
4748
var expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(properties, FileSystems.Default);
4799
ICollection<
ProjectItemInstance
> myDirectories = projectInstance.GetItems("MyDirectories");
4843
ICollection<
ProjectItemInstance
> myDirectories = projectInstance.GetItems("MyDirectories");
4872
ICollection<
ProjectItemInstance
> squiggles = projectInstance.GetItems("Squiggle");
4919
ICollection<
ProjectItemInstance
> squiggleItems = projectInstance.GetItems("Compile");
4960
ICollection<
ProjectItemInstance
> squiggleItems = projectInstance.GetItems("MyDirectory");
5139
_ = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(
5177
var result = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default, loggingContext)
Evaluation\ItemSpec_Tests.cs (4)
16
Microsoft.Build.Evaluation.Expander<Microsoft.Build.Execution.ProjectPropertyInstance, Microsoft.Build.Execution.
ProjectItemInstance
>;
18
Microsoft.Build.Evaluation.ItemSpec<Microsoft.Build.Execution.ProjectPropertyInstance, Microsoft.Build.Execution.
ProjectItemInstance
>;
99
private static ItemDictionary<
ProjectItemInstance
> ToItemDictionary(Dictionary<string, string[]> itemTypes)
101
var itemDictionary = new ItemDictionary<
ProjectItemInstance
>();
ExpressionTree_Tests.cs (51)
30
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default);
46
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default);
71
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default);
90
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default);
102
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), new ItemDictionary<
ProjectItemInstance
>(), FileSystems.Default, null);
112
new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance,
ProjectItemInstance
>(
152
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(propertyBag, new ItemDictionary<
ProjectItemInstance
>(), FileSystems.Default, null);
184
ItemDictionary<
ProjectItemInstance
> itemBag = new ItemDictionary<
ProjectItemInstance
>();
190
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), itemBag, FileSystems.Default, null);
214
ItemDictionary<
ProjectItemInstance
> itemBag = new ItemDictionary<
ProjectItemInstance
>();
233
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(propertyBag, itemBag, FileSystems.Default, null);
249
ItemDictionary<
ProjectItemInstance
> itemBag = new ItemDictionary<
ProjectItemInstance
>();
265
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(propertyBag, itemBag, FileSystems.Default, null);
281
ItemDictionary<
ProjectItemInstance
> itemBag = new ItemDictionary<
ProjectItemInstance
>();
286
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(propertyBag, itemBag, FileSystems.Default, null);
298
ItemDictionary<
ProjectItemInstance
> itemBag = new ItemDictionary<
ProjectItemInstance
>();
315
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(propertyBag, itemBag, FileSystems.Default, null);
327
ItemDictionary<
ProjectItemInstance
> itemBag = new ItemDictionary<
ProjectItemInstance
>();
332
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), itemBag, FileSystems.Default, null);
335
new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance,
ProjectItemInstance
>(
419
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(propertyBag, new ItemDictionary<
ProjectItemInstance
>(), FileSystems.Default, null);
427
private void AssertParseEvaluate(Parser p, string expression, Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander, bool expected)
432
private void AssertParseEvaluate(Parser p, string expression, Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander, bool expected, ConditionEvaluator.IConditionEvaluationState state)
444
new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance,
ProjectItemInstance
>(
459
private void AssertParseEvaluateThrow(Parser p, string expression, Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander)
464
private void AssertParseEvaluateThrow(Parser p, string expression, Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander, ConditionEvaluator.IConditionEvaluationState state)
480
new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance,
ProjectItemInstance
>(
506
Expander<ProjectPropertyInstance,
ProjectItemInstance
> expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(new PropertyDictionary<ProjectPropertyInstance>(), FileSystems.Default);
ExpressionTreeExpression_Tests.cs (7)
28
private readonly Expander<ProjectPropertyInstance,
ProjectItemInstance
> _expander;
368
ItemDictionary<
ProjectItemInstance
> itemBag = new ItemDictionary<
ProjectItemInstance
>();
404
_expander = new Expander<ProjectPropertyInstance,
ProjectItemInstance
>(propertyBag, itemBag, itemMetadata, FileSystems.Default);
438
new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance,
ProjectItemInstance
>(
462
new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance,
ProjectItemInstance
>(
494
new ConditionEvaluator.ConditionEvaluationState<ProjectPropertyInstance,
ProjectItemInstance
>(
Graph\GraphLoadedFromSolution_tests.cs (5)
639
IEnumerable<
ProjectItemInstance
> GetOutgoingEdgeItemsFromNode(ProjectGraphNode node, IReadOnlyDictionary<(ConfigurationMetadata, ConfigurationMetadata),
ProjectItemInstance
> edgeInfos)
644
IEnumerable<
ProjectItemInstance
> GetIncomingEdgeItemsToNode(ProjectGraphNode node, IReadOnlyDictionary<(ConfigurationMetadata, ConfigurationMetadata),
ProjectItemInstance
> edgeInfos)
650
private static bool IsSolutionItemReference(
ProjectItemInstance
edgeItem)
Graph\GraphTestingUtilities.cs (3)
57
ProjectItemInstance
edge = graph.TestOnly_Edges[(outerBuild, innerBuild)];
82
ProjectItemInstance
edgeToOuterBuild = graph.TestOnly_Edges[(outerBuildReferencer, outerBuild)];
83
ProjectItemInstance
edgeToInnerBuild = graph.TestOnly_Edges[(outerBuildReferencer, innerBuild)];
Graph\ProjectGraph_Tests.cs (5)
137
var
referenceItem1 = new ProjectItemInstance(projectInstance, "Ref1", "path1", "file1");
140
var
referenceItem2 = new ProjectItemInstance(projectInstance, "Ref2", "path2", "file2");
184
var
referenceItem1 = new ProjectItemInstance(projectInstance, "Ref1", "path1", "file1");
185
var
referenceItem2 = new ProjectItemInstance(projectInstance, "Ref2", "path1", "file1");
1957
var
edgeToOuterBuild = graph.TestOnly_Edges[(outerBuildReferencingNode, GetOuterBuild(graph, 2))];
Instance\ProjectMetadataInstance_Internal_Tests.cs (1)
58
ProjectItemInstance
item = projectInstance.AddItem("i", "i1");
Instance\TaskItem_Tests.cs (1)
18
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
MockTask.cs (1)
9
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
TestComparers\ProjectInstanceModelTestComparers.cs (2)
13
Microsoft.Build.Evaluation.IEvaluatorData<Microsoft.Build.Execution.ProjectPropertyInstance, Microsoft.Build.Execution.
ProjectItemInstance
,
32
Assert.Equal(x.Items.ToArray(), y.Items.ToArray(),
ProjectItemInstance
.ProjectItemInstanceEqualityComparer.Default);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (8)
TargetTests.cs (8)
168
var
item = items.Single();
201
var
item = items.Single();
230
var
item = items.Single();
262
var
item = items.Single();
304
var
item = items.Single();
344
var
item = items.Single();
379
var
item = items.Single();
844
var
item = items.Single();
Microsoft.Build.Tasks.UnitTests (2)
CallTarget_Tests.cs (2)
180
IEnumerable<
ProjectItemInstance
> targetOutputs = instance.GetItems("myfancytargetoutputs");
184
foreach (
ProjectItemInstance
item in targetOutputs)
Microsoft.Build.UnitTests.Shared (4)
BuildEventArgsExtension.cs (1)
7
using TaskItem = Microsoft.Build.Execution.
ProjectItemInstance
.TaskItem;
ObjectModelHelpers.cs (3)
230
private readonly
ProjectItemInstance
_projectInstance;
232
public ProjectItemInstanceTestItemAdapter(
ProjectItemInstance
projectInstance)
241
public static implicit operator ProjectItemInstanceTestItemAdapter(
ProjectItemInstance
pi)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
MSBuild\ProjectFile\Extensions.cs (3)
41
foreach (
var
item in packageReferenceItems)
55
private static ProjectFileReference CreateProjectFileReference(MSB.Execution.
ProjectItemInstance
reference)
96
foreach (
var
item in executedProject.GetItems(itemType))
MSBuild (1)
JsonOutputFormatter.cs (1)
59
foreach (
ProjectItemInstance
item in project.GetItems(itemName))