5 implementations of ITaskItem2
Microsoft.Build (3)
Instance\ProjectItemInstance.cs (2)
36ITaskItem2, 755ITaskItem2,
TaskParameter.cs (1)
727ITaskItem2
Microsoft.Build.Utilities.Core (1)
TaskItem.cs (1)
36ITaskItem2,
MSBuild (1)
TaskParameter.cs (1)
727ITaskItem2
73 references to ITaskItem2
Microsoft.Build (26)
BackEnd\Components\ProjectCache\CacheResult.cs (1)
131private static ProjectItemInstance.TaskItem CreateTaskItem(ITaskItem2 taskItemInterface)
BackEnd\Components\ProjectCache\PluginTargetResult.cs (2)
17public IReadOnlyCollection<ITaskItem2> TaskItems { get; } 22IReadOnlyCollection<ITaskItem2> taskItems,
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
1401if (output is ITaskItem2 outputAsITaskItem2) 1463if (output is ITaskItem2 outputAsITaskItem2)
Instance\ProjectItemInstance.cs (12)
226string ITaskItem2.EvaluatedIncludeEscaped 479string ITaskItem2.GetMetadataValueEscaped(string name) 501void ITaskItem2.SetMetadataValueLiteral(string metadataName, string metadataValue) 505((ITaskItem2)_taskItem).SetMetadataValueLiteral(metadataName, metadataValue); 533IDictionary ITaskItem2.CloneCustomMetadataEscaped() 535return ((ITaskItem2)_taskItem).CloneCustomMetadataEscaped(); 920string ITaskItem2.EvaluatedIncludeEscaped 1275string ITaskItem2.GetMetadataValueEscaped(string name) 1369void ITaskItem2.SetMetadataValueLiteral(string metadataName, string metadataValue) 1512IDictionary ITaskItem2.CloneCustomMetadataEscaped() 1614ITaskItem2 thisAsITaskItem2 = this; 1615ITaskItem2 otherAsITaskItem2 = other;
TaskParameter.cs (9)
291ITaskItem2 copyFromAsITaskItem2 = copyFrom as ITaskItem2; 408ITaskItem2 wrappedItemAsITaskItem2 = wrappedItem as ITaskItem2; 817string ITaskItem2.EvaluatedIncludeEscaped 837string metadataValue = (this as ITaskItem2).GetMetadataValueEscaped(metadataName); 953string ITaskItem2.GetMetadataValueEscaped(string metadataName) 976void ITaskItem2.SetMetadataValueLiteral(string metadataName, string metadataValue) 984IDictionary ITaskItem2.CloneCustomMetadataEscaped()
Microsoft.Build.Engine.OM.UnitTests (6)
Instance\ProjectInstance_Tests.cs (3)
748Helpers.VerifyAssertThrowsInvalidOperation(delegate () { ((ITaskItem2)Helpers.GetFirst(instance.Items)).EvaluatedIncludeEscaped = "x"; }); 759Helpers.VerifyAssertThrowsInvalidOperation(delegate () { ((ITaskItem2)Helpers.GetFirst(instance.Items)).ItemSpec = "x"; }); 770Helpers.VerifyAssertThrowsInvalidOperation(delegate () { ((ITaskItem2)Helpers.GetFirst(instance.Items)).SetMetadataValueLiteral("a", "b"); });
Instance\ProjectItemInstance_Tests.cs (3)
352ITaskItem2 taskItem = (ITaskItem2)item; 364ITaskItem2 taskItem2 = new Microsoft.Build.Utilities.TaskItem(taskItem);
Microsoft.Build.Engine.UnitTests (13)
ConsoleLogger_Tests.cs (3)
1666items.Add("type", (ITaskItem2)new TaskItem("spec", String.Empty)); 1667items.Add("type2", (ITaskItem2)new TaskItem("spec2", String.Empty)); 1670ITaskItem2 taskItem3 = new TaskItem("%28spec%3b3", String.Empty);
ProjectCache\ProjectCacheTests.cs (2)
131new ITaskItem2[] 977new ITaskItem2[]
TaskParameter_Tests.cs (8)
342ITaskItem2 foo = t.WrappedParameter as ITaskItem2; 352ITaskItem2 foo2 = t2.WrappedParameter as ITaskItem2; 453ITaskItem2 foo = t.WrappedParameter as ITaskItem2; 466ITaskItem2 foo2 = t2.WrappedParameter as ITaskItem2;
Microsoft.Build.Tasks.Core (3)
AssignProjectConfiguration.cs (1)
220if (projectRef is ITaskItem2 item2)
ConvertToAbsolutePath.cs (1)
58if (path is ITaskItem2 item2)
ResGen.cs (1)
482if (inputFiles[i] is ITaskItem2 inputFileAsITaskItem2)
Microsoft.Build.Utilities.Core (9)
TaskItem.cs (9)
147if (!(sourceItem is ITaskItem2 sourceItemAsITaskItem2)) 194string ITaskItem2.EvaluatedIncludeEscaped 305string metadataValue = (this as ITaskItem2).GetMetadataValueEscaped(metadataName); 321ITaskItem2 destinationAsITaskItem2 = destinationItem as ITaskItem2; 377destinationAsITaskItem2.SetMetadata("OriginalItemSpec", ((ITaskItem2)this).EvaluatedIncludeEscaped); 450string ITaskItem2.GetMetadataValueEscaped(string metadataName) 476void ITaskItem2.SetMetadataValueLiteral(string metadataName, string metadataValue) => SetMetadata(metadataName, EscapingUtilities.Escape(metadataValue)); 483IDictionary ITaskItem2.CloneCustomMetadataEscaped() => _metadata == null
Microsoft.DotNet.Arcade.Sdk (1)
src\SaveItems.cs (1)
35var metadata = ((ITaskItem2)item).CloneCustomMetadataEscaped();
Microsoft.DotNet.Helix.Sdk (2)
GetHelixWorkItems.cs (2)
66ITaskItem2 CreateTaskItem(string workItemName, IDictionary<string, string> metadata) 68ITaskItem2 workItem = new TaskItem(workItemName);
Microsoft.Extensions.ApiDescription.Client (4)
MetadataSerializer.cs (4)
33if (item is ITaskItem2 item2) 59if (item is ITaskItem2 item2) 98var item2 = (ITaskItem2)item;
MSBuild (9)
TaskParameter.cs (9)
291ITaskItem2 copyFromAsITaskItem2 = copyFrom as ITaskItem2; 408ITaskItem2 wrappedItemAsITaskItem2 = wrappedItem as ITaskItem2; 817string ITaskItem2.EvaluatedIncludeEscaped 837string metadataValue = (this as ITaskItem2).GetMetadataValueEscaped(metadataName); 953string ITaskItem2.GetMetadataValueEscaped(string metadataName) 976void ITaskItem2.SetMetadataValueLiteral(string metadataName, string metadataValue) 984IDictionary ITaskItem2.CloneCustomMetadataEscaped()