Implemented interface member:
property
ItemSpec
Microsoft.Build.Framework.ITaskItem.ItemSpec
36 writes to ItemSpec
Crossgen2Tasks (6)
PrepareForReadyToRunCompilation.cs (6)
195r2rFileToPublish.ItemSpec = outputR2RImage; 210pdbCompilationEntry.ItemSpec = outputR2RImage; 219r2rSymbolsFileToPublish.ItemSpec = outputPDBImage; 240r2rCompilationEntry.ItemSpec = r2rCompositeInputList[0].ItemSpec; 268r2rSymbolsFileToPublish.ItemSpec = compositePDBImage; 284compositeR2RFileToPublish.ItemSpec = compositeR2RImage;
Microsoft.Build.Tasks.Core (5)
AssemblyDependency\ReferenceTable.cs (1)
2675referenceItem.ItemSpec = reference.FullPath;
AssignCulture.cs (1)
174new TaskItem(AssignedFiles[i]) { ItemSpec = info.cultureNeutralFilename };
CombinePath.cs (1)
70combinedPath.ItemSpec = Path.Combine(BasePath, path.ItemSpec);
CreateItem.cs (1)
185TaskItem newItem = new TaskItem(i) { ItemSpec = file };
CreateManifestResourceName.cs (1)
225ManifestResourceNames[i] = new TaskItem(resourceFile) { ItemSpec = manifestName };
Microsoft.Build.Tasks.UnitTests (5)
CommandLineBuilderExtension_Tests.cs (3)
32i.ItemSpec = "MyResource.bmp"; 73i.ItemSpec = "MySoundEffect.wav"; 78j.ItemSpec = "MySplashScreen.bmp";
XslTransformation_Tests.cs (2)
649xmlPaths[0].ItemSpec += "bad"; 679xslPath.ItemSpec += "bad";
Microsoft.Build.Utilities.Core (1)
TrackedDependencies\TrackedDependencies.cs (1)
57expanded.Add(new TaskItem(item) { ItemSpec = file });
Microsoft.Build.Utilities.UnitTests (13)
TaskItem_Tests.cs (13)
29from.ItemSpec = "Monkey.txt"; 55from.ItemSpec = "Monkey.txt"; 61to.ItemSpec = "Bonobo.txt"; 184from.ItemSpec = "Monkey.txt"; 195from.ItemSpec = "Monkey.txt"; 203from.ItemSpec = "Monkey.txt"; 211from.ItemSpec = "Monkey.txt"; 219from.ItemSpec = "Monkey.txt"; 227from.ItemSpec = NativeMethodsShared.IsWindows ? @"c:\subdir\Monkey.txt" : "/subdir/Monkey.txt"; 235from.ItemSpec = @"\\local\share\subdir\Monkey.txt"; 243from.ItemSpec = "Monkey.txt"; 252from.ItemSpec = "Monkey.txt"; 260from.ItemSpec = FileUtilities.GetTemporaryFile();
Microsoft.DotNet.XliffTasks (2)
Tasks\GatherTranslatedSource.cs (1)
30TaskItem output = new(xlf) { ItemSpec = translatedFullPath };
Tasks\GatherXlf.cs (1)
39TaskItem xlf = new(source) { ItemSpec = xlfPath };
PresentationBuildTasks (4)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (1)
307ItemSpec = inputItem.ItemSpec,
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (2)
1485codeItem.ItemSpec = genLangFilePath; 1590bamlItem.ItemSpec = bamlFile;
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
800bamlItem.ItemSpec = bamlFile;
44 references to ItemSpec
Microsoft.Build.Tasks.UnitTests (32)
RemoveDir_Tests.cs (1)
78Directory.Exists(list[i].ItemSpec).ShouldBeFalse();
WriteCodeFragment_Tests.cs (5)
109string expectedFile = Path.Combine(folder.ItemSpec, file.ItemSpec); 136Assert.Equal(file.ItemSpec, task.OutputFile.ItemSpec); 406Assert.Equal(folder.ItemSpec, task.OutputFile.ItemSpec.Substring(0, folder.ItemSpec.Length));
XslTransformation_Tests.cs (26)
806string xmlInputPath = xmlPaths[0].ItemSpec; 809string xslInputPath = xslPath.ItemSpec; 951using (StreamWriter sw = new StreamWriter(otherXmlPath.ItemSpec, false)) 960TaskItem[] outputMultiPaths = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 961new TaskItem(outputPaths[0].ItemSpec + ".2.xml"), new TaskItem(outputPaths[0].ItemSpec + ".3.xml"), new TaskItem(outputPaths[0].ItemSpec + ".4.xml") }; 972Assert.True(File.Exists(tsk.ItemSpec), tsk.ItemSpec + " should exist on output dir"); 977Assert.NotEqual(new FileInfo(xmlMultiPaths[0].ItemSpec).Length, new FileInfo(xmlMultiPaths[1].ItemSpec).Length); 978Assert.NotEqual(new FileInfo(outputMultiPaths[0].ItemSpec).Length, new FileInfo(outputMultiPaths[1].ItemSpec).Length); 1003TaskItem[] outputMultiPathsShort = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 1004new TaskItem(outputPaths[0].ItemSpec + ".2.xml"), 1005new TaskItem(outputPaths[0].ItemSpec + ".3.xml") }; 1007TaskItem[] outputMultiPathsLong = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 1008new TaskItem(outputPaths[0].ItemSpec + ".2.xml"), 1009new TaskItem(outputPaths[0].ItemSpec + ".3.xml"), 1010new TaskItem(outputPaths[0].ItemSpec + ".4.xml"), 1011new TaskItem(outputPaths[0].ItemSpec + ".5.xml") }; 1052using (StreamWriter sw = new StreamWriter(otherXslPath.ItemSpec, false)) 1059using (StreamWriter sw = new StreamWriter(myXmlPath1.ItemSpec, false)) 1066using (StreamWriter sw = new StreamWriter(myXmlPath2.ItemSpec, false)) 1115using (StreamWriter sw = new StreamWriter(xmlPaths[0].ItemSpec, false)) 1121using (StreamWriter sw = new StreamWriter(xslPath.ItemSpec, false))
Microsoft.Build.Utilities.Core (3)
TaskItem.cs (3)
163ErrorUtilities.VerifyThrowArgumentNull(value, nameof(ItemSpec)); 364destinationItem.SetMetadata("OriginalItemSpec", EscapingUtilities.Escape(ItemSpec)); 423return taskItemToCast.ItemSpec;
Microsoft.Build.Utilities.UnitTests (3)
TaskItem_Tests.cs (3)
34to.ItemSpec.ShouldBe("Monkey.txt"); 67to.ItemSpec.ShouldBe("Bonobo.txt"); // ItemSpec is never overwritten 268File.Delete(from.ItemSpec);
Microsoft.DotNet.Build.Tasks.Packaging (2)
HarvestPackage.cs (1)
257Log.LogMessage(LogImportance.Low, $"Validating version {version} for {supportedFramework.ItemSpec} because it was supported by {PackageId}/{PackageVersion}.");
SplitReferences.cs (1)
95packageReferences.Add(emptyItem.ItemSpec, emptyItem);
PresentationBuildTasks (4)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (2)
1489Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedCodeFile), codeItem.ItemSpec); 1498Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedBamlFile), bamlItem.ItemSpec);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (2)
738Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec); 757Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec);