60 writes to SourceFiles
Microsoft.Build.Tasks.Core (1)
Copy.cs (1)
792SourceFiles = sourceFiles.ToArray();
Microsoft.Build.Tasks.UnitTests (59)
Copy_Tests.cs (59)
150SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 175SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 273SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 298SourceFiles = sourceFiles, 346SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 370SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 394SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 417SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 442SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 468SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 505SourceFiles = sourceFiles, 553SourceFiles = sourceFiles, 613SourceFiles = sourceFiles, 665SourceFiles = sourceFiles, 721SourceFiles = sourceFiles, 788SourceFiles = sourceFiles, 855SourceFiles = sourceFiles, 922SourceFiles = sourceFiles, 995SourceFiles = sourceFiles, 1061SourceFiles = sourceFiles, 1117SourceFiles = new[] { new TaskItem(sourceFile) }, 1196SourceFiles = sourceFiles, 1235SourceFiles = sourceFiles, 1282SourceFiles = sourceFiles, 1329SourceFiles = sourceFiles, 1372SourceFiles = sourceFiles, 1498SourceFiles = sourceFiles, 1545SourceFiles = sourceFiles, 1607t.SourceFiles = new[] { new TaskItem(inFile2), i1 }; 1682SourceFiles = new ITaskItem[] { new TaskItem(file) }, 1701SourceFiles = new ITaskItem[] { new TaskItem(file) }, 1753SourceFiles = new ITaskItem[] { new TaskItem(file) }, 1807SourceFiles = new ITaskItem[] { new TaskItem(file), new TaskItem(invalidFile) }, 1868SourceFiles = sourceFiles, 1940SourceFiles = sourceFiles, 2005SourceFiles = sourceFiles, 2072SourceFiles = sourceFiles, 2141SourceFiles = new ITaskItem[] { new TaskItem(inFile1), new TaskItem(inFile2) }, 2189SourceFiles = sourceFiles, 2227SourceFiles = sourceFiles, 2253SourceFiles = new ITaskItem[] { new TaskItem("foo | bar") }, 2277SourceFiles = new ITaskItem[] { new TaskItem("foo") }, 2301SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2322SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2347SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2414SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2441SourceFiles = new ITaskItem[] { new TaskItem("c:\\source"), new TaskItem("c:\\source2") }, 2473SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2502SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2537SourceFiles = new ITaskItem[] { new TaskItem(source) }, 2569SourceFiles = sourceFiles, 2660SourceFiles = sourceFiles, 2746SourceFiles = sourceFiles, 2824SourceFiles = sourceFiles, 2890SourceFiles = sourceFiles, 2918SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") }, 2956SourceFiles = sourceFiles, 2973SourceFiles = sourceFiles, 2996SourceFiles = sourceFiles,
22 references to SourceFiles
Microsoft.Build.Tasks.Core (20)
Copy.cs (20)
469for (int i = 0; i < SourceFiles.Length && !_cancellationTokenSource.IsCancellationRequested; ++i) 476if (String.Equals(originalSource, SourceFiles[i].ItemSpec, StringComparison.OrdinalIgnoreCase)) 485if (DoCopyIfNecessary(new FileState(SourceFiles[i].ItemSpec), new FileState(DestinationFiles[i].ItemSpec), copyFile)) 487filesActuallyCopied[destPath] = SourceFiles[i].ItemSpec; 502SourceFiles[i].CopyMetadataTo(DestinationFiles[i]); 547for (int i = 0; i < SourceFiles.Length && !_cancellationTokenSource.IsCancellationRequested; ++i) 576ITaskItem sourceItem = SourceFiles[fileIndex]; 585SourceFiles[partition[partitionIndex - 1]].ItemSpec, 649return (SourceFiles == null || SourceFiles.Length == 0) && (SourceFolders == null || SourceFolders.Length == 0); 692if (DestinationFiles != null && DestinationFiles.Length != SourceFiles.Length) 694Log.LogErrorWithCodeFromResources("General.TwoVectorsMustHaveSameLength", DestinationFiles.Length, SourceFiles.Length, "DestinationFiles", "SourceFiles"); 720if (DestinationFiles == null && SourceFiles != null) 722DestinationFiles = new ITaskItem[SourceFiles.Length]; 724for (int i = 0; i < SourceFiles.Length; ++i) 728() => Path.Combine(DestinationFolder.ItemSpec, Path.GetFileName(SourceFiles[i].ItemSpec)), 729SourceFiles[i].ItemSpec, 743SourceFiles[i].CopyMetadataTo(DestinationFiles[i]); 749var sourceFiles = SourceFiles != null ? new List<ITaskItem>(SourceFiles) : new List<ITaskItem>();
Microsoft.Build.Tasks.UnitTests (2)
Copy_Tests.cs (2)
1628Assert.Equal("en-GB", t.SourceFiles[1].GetMetadata("Locale")); 1629Assert.Equal("taupe", t.SourceFiles[1].GetMetadata("Color"));