54 references to Name
Microsoft.Build.Tasks.Core (41)
Copy.cs (41)
235Log.LogErrorWithCodeFromResources("Copy.DestinationIsDirectory", sourceFileState.Name, destinationFileState.Name);
245Log.LogErrorWithCodeFromResources("Copy.SourceIsDirectory", sourceFileState.Name);
251Log.LogErrorWithCodeFromResources("Copy.SourceFileNotFound", sourceFileState.Name);
255string destinationFolder = Path.GetDirectoryName(destinationFileState.Name);
294FileUtilities.DeleteNoThrow(destinationFileState.Name);
347File.Copy(sourceFileState.Name, destinationFileState.Name, true);
370linkCreated = createLink(sourceFileState.Name, destinationFileState.Name, errorMessage);
385Log.LogMessage(MessageImportance.Low, RemovingReadOnlyAttribute, file.Name);
388File.SetAttributes(file.Name, FileAttributes.Normal);
855sourceFileState.Name,
856destinationFileState.Name,
859MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, true);
863MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, false);
867Log.LogError(FileComment, sourceFileState.Name, destinationFileState.Name);
877MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, true);
886Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message);
891Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message);
931LogAlwaysRetryDiagnosticFromResources("Copy.IOException", e.ToString(), sourceFileState.Name, destinationFileState.Name, code);
974Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Name,
975destinationFileState.Name, retries, RetryDelayMilliseconds, e.Message,
976LockCheck.GetLockedFileMessage(destinationFileState.Name));
987Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name,
988destinationFileState.Name, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Name));
1000Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Name,
1001destinationFileState.Name, retries, RetryDelayMilliseconds, String.Empty /* no details */,
1002LockCheck.GetLockedFileMessage(destinationFileState.Name));
1011Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name,
1012destinationFileState.Name, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Name));
1042if (string.Equals(source.Name, destination.Name, FileUtilities.PathComparison))
1047source.FileNameFullPath = Path.GetFullPath(source.Name);
1048destination.FileNameFullPath = Path.GetFullPath(destination.Name);
Microsoft.Build.Tasks.UnitTests (13)
Copy_Tests.cs (9)
2025filesActuallyCopied.Select(f => Path.GetFileName(f.Key.Name)).ShouldBe(new[] { "a.cs", "b.cs" }, ignoreOrder: true);
2093var xaCopies = filesActuallyCopied.Where(f => f.Value.Name == xaPath).ToList();
2095Assert.Equal(Path.Combine(tempPath, "a.cs"), xaCopies[0].Key.Name);
2096Assert.Equal(Path.Combine(tempPath, "b.cs"), xaCopies[1].Key.Name);
2097Assert.Equal(Path.Combine(tempPath, "a.cs"), xaCopies[2].Key.Name);
2100var xbCopies = filesActuallyCopied.Where(f => f.Value.Name == xbPath).ToList();
2102Assert.Equal(Path.Combine(tempPath, "a.cs"), xbCopies[0].Key.Name);
2456Assert.Contains(copyFunctor.FilesCopiedSuccessfully, f => f.Name == FileUtilities.FixFilePath("c:\\source"));
2457Assert.Contains(copyFunctor.FilesCopiedSuccessfully, f => f.Name == FileUtilities.FixFilePath("c:\\source2"));