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