36 references to Lookup
Microsoft.Build (20)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (5)
238bucket.Lookup.AddNewItemsOfItemType(child.ItemType, itemsToAdd, !keepDuplicates, logFunction); 252ICollection<ProjectItemInstance> group = bucket.Lookup.GetItems(child.ItemType); 284bucket.Lookup.RemoveItems(itemsToRemove); 299ICollection<ProjectItemInstance> group = bucket.Lookup.GetItems(child.ItemType); 345bucket.Lookup.ModifyItems(child.ItemType, group, metadataToSet);
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
93bucket.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)
499lookupForInference = bucket.Lookup; 500lookupForExecution = bucket.Lookup.Clone();
BackEnd\Components\RequestBuilder\TaskBuilder.cs (5)
455List<string> overrideMessages = bucket.Lookup.GetPropertyOverrideMessages(lookupHash); 500List<string> overrideMessages = bucket.Lookup.GetPropertyOverrideMessages(lookupHash); 642task.ExecuteTask(bucket.Lookup); 832bucket.Lookup.SetProperty(ProjectPropertyInstance.Create(ReservedPropertyNames.lastTaskResult, taskResult ? "true" : "false", true/* may be reserved */, _buildRequestEntry.RequestConfiguration.Project.IsImmutable)); 1151InferTaskOutputs(bucket.Lookup, taskOutputSpecification, taskParameterName, outputTargetName, outputTargetName, bucket);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (6)
458EnsureParameterInitialized(parameter, _batchBucket.Lookup); 1053EnsureParameterInitialized(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")); 1302Assert.Single(_bucket.Lookup.GetItems("output")); 1303Assert.Equal(value, _bucket.Lookup.GetItems("output").First().EvaluatedInclude); 1314Assert.Single(_bucket.Lookup.GetItems("output")); 1315Assert.Equal(0, TaskItemComparer.Instance.Compare(value, new TaskItem(_bucket.Lookup.GetItems("output").First()))); 1326Assert.Equal(values.Length, _bucket.Lookup.GetItems("output").Count); 1329Assert.Equal(values[i], _bucket.Lookup.GetItems("output").ElementAt(i).EvaluatedInclude); 1341Assert.Equal(values.Length, _bucket.Lookup.GetItems("output").Count); 1344Assert.Equal(0, TaskItemComparer.Instance.Compare(values[i], new TaskItem(_bucket.Lookup.GetItems("output").ElementAt(i)))); 1356Assert.NotNull(_bucket.Lookup.GetProperty("output")); 1357Assert.Equal(value, _bucket.Lookup.GetProperty("output").EvaluatedValue);