54 references to Name
Microsoft.Build.Tasks.Core (41)
Copy.cs (41)
263Log.LogErrorWithCodeFromResources("Copy.DestinationIsDirectory", sourceFileState.Name, destinationFileState.Name); 273Log.LogErrorWithCodeFromResources("Copy.SourceIsDirectory", sourceFileState.Name); 279Log.LogErrorWithCodeFromResources("Copy.SourceFileNotFound", sourceFileState.Name); 283string destinationFolder = Path.GetDirectoryName(destinationFileState.Name); 322FileUtilities.DeleteNoThrow(destinationFileState.Name); 375File.Copy(sourceFileState.Name, destinationFileState.Name, true); 398linkCreated = createLink(sourceFileState.Name, destinationFileState.Name, errorMessage); 413Log.LogMessage(MessageImportance.Low, RemovingReadOnlyAttribute, file.Name); 416File.SetAttributes(file.Name, FileAttributes.Normal); 903sourceFileState.Name, 904destinationFileState.Name, 907MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, true); 911MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, false); 915Log.LogError(FileComment, sourceFileState.Name, destinationFileState.Name); 925MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, true); 934Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message); 939Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message); 979LogAlwaysRetryDiagnosticFromResources("Copy.IOException", e.ToString(), sourceFileState.Name, destinationFileState.Name, code); 1022Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Name, 1023destinationFileState.Name, retries, RetryDelayMilliseconds, e.Message, 1024LockCheck.GetLockedFileMessage(destinationFileState.Name)); 1035Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name, 1036destinationFileState.Name, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Name)); 1048Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Name, 1049destinationFileState.Name, retries, RetryDelayMilliseconds, String.Empty /* no details */, 1050LockCheck.GetLockedFileMessage(destinationFileState.Name)); 1059Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name, 1060destinationFileState.Name, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Name)); 1090if (string.Equals(source.Name, destination.Name, FileUtilities.PathComparison)) 1095source.FileNameFullPath = Path.GetFullPath(source.Name); 1096destination.FileNameFullPath = Path.GetFullPath(destination.Name);
Microsoft.Build.Tasks.UnitTests (13)
Copy_Tests.cs (9)
2020filesActuallyCopied.Select(f => Path.GetFileName(f.Key.Name)).ShouldBe(new[] { "a.cs", "b.cs" }, ignoreOrder: true); 2088var xaCopies = filesActuallyCopied.Where(f => f.Value.Name == xaPath).ToList(); 2090Assert.Equal(Path.Combine(tempPath, "a.cs"), xaCopies[0].Key.Name); 2091Assert.Equal(Path.Combine(tempPath, "b.cs"), xaCopies[1].Key.Name); 2092Assert.Equal(Path.Combine(tempPath, "a.cs"), xaCopies[2].Key.Name); 2095var xbCopies = filesActuallyCopied.Where(f => f.Value.Name == xbPath).ToList(); 2097Assert.Equal(Path.Combine(tempPath, "a.cs"), xbCopies[0].Key.Name); 2451Assert.Contains(copyFunctor.FilesCopiedSuccessfully, f => f.Name == FileUtilities.FixFilePath("c:\\source")); 2452Assert.Contains(copyFunctor.FilesCopiedSuccessfully, f => f.Name == FileUtilities.FixFilePath("c:\\source2"));
FileStateTests.cs (4)
84Assert.Equal(info.FullName, state.Name); 213Assert.Equal(info.FullName, state.Name); 218Assert.Equal(originalName, state.Name); 220Assert.Equal(originalName, state.Name); // Name is from the constructor, didn't change