130 references to ProjectItemInstance
Microsoft.Build (7)
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 (1)
235
var stubItem = new
ProjectItemInstance
(
Instance\ProjectInstance.cs (1)
1953
ProjectItemInstance item = new
ProjectItemInstance
(this, itemType, evaluatedInclude, this.FullPath);
Instance\ProjectItemInstance.cs (1)
2020
ProjectItemInstance item = new
ProjectItemInstance
(_project, ItemType, include, definingProject);
Microsoft.Build.Engine.UnitTests (123)
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 (33)
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
215
new
ProjectItemInstance
(project, "i1", "a1", 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");