54 references to Name
Microsoft.Build.Tasks.Core (41)
Copy.cs (41)
266Log.LogErrorWithCodeFromResources("Copy.DestinationIsDirectory", sourceFileState.Name, destinationFileState.Name); 276Log.LogErrorWithCodeFromResources("Copy.SourceIsDirectory", sourceFileState.Name); 282Log.LogErrorWithCodeFromResources("Copy.SourceFileNotFound", sourceFileState.Name); 286string destinationFolder = Path.GetDirectoryName(destinationFileState.Name); 325FileUtilities.DeleteNoThrow(destinationFileState.Name); 378File.Copy(sourceFileState.Name, destinationFileState.Name, true); 401linkCreated = createLink(sourceFileState.Name, destinationFileState.Name, errorMessage); 416Log.LogMessage(MessageImportance.Low, RemovingReadOnlyAttribute, file.Name); 419File.SetAttributes(file.Name, FileAttributes.Normal); 906sourceFileState.Name, 907destinationFileState.Name, 910MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, true); 914MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, false); 918Log.LogError(FileComment, sourceFileState.Name, destinationFileState.Name); 928MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Name, true); 937Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message); 942Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message); 982LogAlwaysRetryDiagnosticFromResources("Copy.IOException", e.ToString(), sourceFileState.Name, destinationFileState.Name, code); 1025Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Name, 1026destinationFileState.Name, retries, RetryDelayMilliseconds, e.Message, 1027LockCheck.GetLockedFileMessage(destinationFileState.Name)); 1038Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name, 1039destinationFileState.Name, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Name)); 1051Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Name, 1052destinationFileState.Name, retries, RetryDelayMilliseconds, String.Empty /* no details */, 1053LockCheck.GetLockedFileMessage(destinationFileState.Name)); 1062Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name, 1063destinationFileState.Name, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Name)); 1093if (string.Equals(source.Name, destination.Name, FileUtilities.PathComparison)) 1098source.FileNameFullPath = Path.GetFullPath(source.Name); 1099destination.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)
85Assert.Equal(info.FullName, state.Name); 214Assert.Equal(info.FullName, state.Name); 219Assert.Equal(originalName, state.Name); 221Assert.Equal(originalName, state.Name); // Name is from the constructor, didn't change