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