1 write to AssignedFiles
Microsoft.Build.Tasks.Core (1)
AssignTargetPath.cs (1)
48
AssignedFiles
= new ITaskItem[Files.Length];
13 references to AssignedFiles
Microsoft.Build.Tasks.Core (2)
AssignTargetPath.cs (2)
76
AssignedFiles
[i] = new TaskItem(Files[i]);
122
AssignedFiles
[i].SetMetadata(ItemMetadataNames.targetPath, EscapingUtilities.Escape(targetPath));
Microsoft.Build.Tasks.UnitTests (11)
AssignTargetPath_Tests.cs (11)
28
t.
AssignedFiles
.Length.ShouldBe(1);
29
t.
AssignedFiles
[0].ItemSpec.ShouldBe(NativeMethodsShared.IsWindows ? @"c:\bin2\abc.efg" : "/bin2/abc.efg");
30
t.
AssignedFiles
[0].GetMetadata("TargetPath").ShouldBe("abc.efg");
43
t.
AssignedFiles
.Length.ShouldBe(1);
44
t.
AssignedFiles
[0].GetMetadata("TargetPath").ShouldBe("file.txt");
64
t.
AssignedFiles
.Length.ShouldBe(1);
65
t.
AssignedFiles
[0].GetMetadata("TargetPath").ShouldBe("file.txt");
81
t.
AssignedFiles
.Length.ShouldBe(1);
82
t.
AssignedFiles
[0].GetMetadata("TargetPath").ShouldBe(NativeMethodsShared.IsWindows ? @"f3\f4\file.txt" : "f3/f4/file.txt");
107
t.
AssignedFiles
.Length.ShouldBe(1);
108
t.
AssignedFiles
[0].GetMetadata("TargetPath").ShouldBe(targetPath);