36 references to Lookup
Microsoft.Build (20)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (5)
238
bucket.
Lookup
.AddNewItemsOfItemType(child.ItemType, itemsToAdd, !keepDuplicates, logFunction);
252
ICollection<ProjectItemInstance> group = bucket.
Lookup
.GetItems(child.ItemType);
284
bucket.
Lookup
.RemoveItems(itemsToRemove);
299
ICollection<ProjectItemInstance> group = bucket.
Lookup
.GetItems(child.ItemType);
345
bucket.
Lookup
.ModifyItems(child.ItemType, group, metadataToSet);
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
93
bucket.
Lookup
.SetProperty(ProjectPropertyInstance.Create(property.Name, evaluatedValue, property.Location, Project.IsImmutable));
BackEnd\Components\RequestBuilder\ItemBucket.cs (1)
75
/// <param name="lookup">The <see cref="
Lookup
"/> to use for the items in the bucket.</param>
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
499
lookupForInference = bucket.
Lookup
;
500
lookupForExecution = bucket.
Lookup
.Clone();
BackEnd\Components\RequestBuilder\TaskBuilder.cs (5)
455
List<string> overrideMessages = bucket.
Lookup
.GetPropertyOverrideMessages(lookupHash);
500
List<string> overrideMessages = bucket.
Lookup
.GetPropertyOverrideMessages(lookupHash);
642
task.ExecuteTask(bucket.
Lookup
);
832
bucket.
Lookup
.SetProperty(ProjectPropertyInstance.Create(ReservedPropertyNames.lastTaskResult, taskResult ? "true" : "false", true/* may be reserved */, _buildRequestEntry.RequestConfiguration.Project.IsImmutable));
1151
InferTaskOutputs(bucket.
Lookup
, taskOutputSpecification, taskParameterName, outputTargetName, outputTargetName, bucket);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (6)
458
EnsureParameterInitialized(parameter, _batchBucket.
Lookup
);
1053
EnsureParameterInitialized(parameter, _batchBucket.
Lookup
);
1427
_batchBucket.
Lookup
.AddNewItem(newItem);
1498
_batchBucket.
Lookup
.SetProperty(ProjectPropertyInstance.Create(outputTargetName, outputString, parameterLocation, _projectInstance.IsImmutable));
1521
_batchBucket.
Lookup
.AddNewItem(new ProjectItemInstance(_projectInstance, outputTargetName, EscapingUtilities.Escape(output), EscapingUtilities.Escape(parameterLocation.File)));
1585
_batchBucket.
Lookup
.SetProperty(ProjectPropertyInstance.Create(outputTargetName, outputString, parameterLocation, _projectInstance.IsImmutable));
Microsoft.Build.Engine.UnitTests (16)
BackEnd\TaskExecutionHost_Tests.cs (16)
771
_bucket.
Lookup
.SetProperty(ProjectPropertyInstance.Create("output", "initialvalue"));
781
_bucket.
Lookup
.SetProperty(ProjectPropertyInstance.Create("output", "initialvalue"));
791
_bucket.
Lookup
.SetProperty(ProjectPropertyInstance.Create("output", "initialvalue"));
801
_bucket.
Lookup
.SetProperty(ProjectPropertyInstance.Create("output", "initialvalue"));
811
_bucket.
Lookup
.SetProperty(ProjectPropertyInstance.Create("output", "initialvalue"));
821
_bucket.
Lookup
.SetProperty(ProjectPropertyInstance.Create("output", "initialvalue"));
1302
Assert.Single(_bucket.
Lookup
.GetItems("output"));
1303
Assert.Equal(value, _bucket.
Lookup
.GetItems("output").First().EvaluatedInclude);
1314
Assert.Single(_bucket.
Lookup
.GetItems("output"));
1315
Assert.Equal(0, TaskItemComparer.Instance.Compare(value, new TaskItem(_bucket.
Lookup
.GetItems("output").First())));
1326
Assert.Equal(values.Length, _bucket.
Lookup
.GetItems("output").Count);
1329
Assert.Equal(values[i], _bucket.
Lookup
.GetItems("output").ElementAt(i).EvaluatedInclude);
1341
Assert.Equal(values.Length, _bucket.
Lookup
.GetItems("output").Count);
1344
Assert.Equal(0, TaskItemComparer.Instance.Compare(values[i], new TaskItem(_bucket.
Lookup
.GetItems("output").ElementAt(i))));
1356
Assert.NotNull(_bucket.
Lookup
.GetProperty("output"));
1357
Assert.Equal(value, _bucket.
Lookup
.GetProperty("output").EvaluatedValue);