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);
851sourceFileState.Name,
852destinationFileState.Name,
855MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, true);
859MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, false);
863Log.LogError(FileComment, sourceFileState.Name, destinationFileState.Name);
873MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, true);
882Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message);
887Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message);
927LogAlwaysRetryDiagnosticFromResources("Copy.IOException", e.ToString(), sourceFileState.Name, destinationFileState.Name, code);
970Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Name,
971destinationFileState.Name, retries, RetryDelayMilliseconds, e.Message,
972LockCheck.GetLockedFileMessage(destinationFileState.Name));
983Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name,
984destinationFileState.Name, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Name));
996Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Name,
997destinationFileState.Name, retries, RetryDelayMilliseconds, String.Empty /* no details */,
998LockCheck.GetLockedFileMessage(destinationFileState.Name));
1007Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name,
1008destinationFileState.Name, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Name));
1038if (string.Equals(source.Name, destination.Name, FileUtilities.PathComparison))
1043source.FileNameFullPath = Path.GetFullPath(source.Name);
1044destination.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"));