3 writes to Path
Microsoft.Build.Tasks.Core (3)
58 references to Path
Microsoft.Build.Tasks.Core (58)
Copy.cs (56)
254Log.LogErrorWithCodeFromResources("Copy.DestinationIsDirectory", sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue);
264Log.LogErrorWithCodeFromResources("Copy.SourceIsDirectory", sourceFileState.Path.OriginalValue);
270Log.LogErrorWithCodeFromResources("Copy.SourceFileNotFound", sourceFileState.Path.OriginalValue);
274string destinationFolder = Path.GetDirectoryName(destinationFileState.Path);
275string originalDestinationFolder = Path.GetDirectoryName(destinationFileState.Path.OriginalValue);
302Log.LogError(FileComment, sourceFileState.Path, destinationFileState.Path);
315FileUtilities.DeleteNoThrow(destinationFileState.Path);
332Log.LogMessage(MessageImportance.Normal, RetryingAsSymbolicLink, sourceFileState.Path, destinationFileState.Path, errorMessage);
336Log.LogMessage(MessageImportance.Normal, RetryingAsFileCopy, sourceFileState.Path, destinationFileState.Path, errorMessage);
352Log.LogMessage(MessageImportance.Normal, RetryingAsFileCopy, sourceFileState.Path, destinationFileState.Path, errorMessage);
358Log.LogErrorWithCodeFromResources("Copy.LinkFailed", sourceFileState.Path, destinationFileState.Path);
367Log.LogMessage(MessageImportance.Normal, FileComment, sourceFileState.Path, destinationFileState.Path);
369File.Copy(sourceFileState.Path, destinationFileState.Path, true);
390Log.LogMessage(MessageImportance.Normal, linkComment, sourceFileState.Path, destinationFileState.Path);
392linkCreated = createLink(sourceFileState.Path, destinationFileState.Path, errorMessage);
407Log.LogMessage(MessageImportance.Low, RemovingReadOnlyAttribute, file.Path.OriginalValue);
410File.SetAttributes(file.Path, FileAttributes.Normal);
947sourceFileState.Path.OriginalValue,
948destinationFileState.Path.OriginalValue,
951MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Path.OriginalValue, true);
955MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Path.OriginalValue, false);
958Log.LogError(FileComment, sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue);
968MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Path.OriginalValue, true);
977Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, e.Message);
982Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, e.Message);
1022LogAlwaysRetryDiagnosticFromResources("Copy.IOException", e.ToString(), sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, code);
1072Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Path.OriginalValue,
1073destinationFileState.Path.OriginalValue, retries, RetryDelayMilliseconds, e.Message,
1074LockCheck.GetLockedFileMessage(destinationFileState.Path));
1085Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Path.OriginalValue,
1086destinationFileState.Path.OriginalValue, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Path));
1098Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Path.OriginalValue,
1099destinationFileState.Path.OriginalValue, retries, RetryDelayMilliseconds, String.Empty /* no details */,
1100LockCheck.GetLockedFileMessage(destinationFileState.Path));
1109Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Path.OriginalValue,
1110destinationFileState.Path.OriginalValue, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Path));
1145source.Path = source.Path.GetCanonicalForm();
1146destination.Path = destination.Path.GetCanonicalForm();
1147return source.Path == destination.Path;