3 writes to Path
Microsoft.Build.Tasks.Core (3)
Copy.cs (2)
1156source.Path = source.Path.GetCanonicalForm(); 1157destination.Path = destination.Path.GetCanonicalForm();
FileState.cs (1)
251Path = path;
58 references to Path
Microsoft.Build.Tasks.Core (58)
Copy.cs (56)
265Log.LogErrorWithCodeFromResources("Copy.DestinationIsDirectory", sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue); 275Log.LogErrorWithCodeFromResources("Copy.SourceIsDirectory", sourceFileState.Path.OriginalValue); 281Log.LogErrorWithCodeFromResources("Copy.SourceFileNotFound", sourceFileState.Path.OriginalValue); 285string destinationFolder = Path.GetDirectoryName(destinationFileState.Path); 286string originalDestinationFolder = Path.GetDirectoryName(destinationFileState.Path.OriginalValue); 313Log.LogError(FileComment, sourceFileState.Path, destinationFileState.Path); 326FileUtilities.DeleteNoThrow(destinationFileState.Path); 343Log.LogMessage(MessageImportance.Normal, RetryingAsSymbolicLink, sourceFileState.Path, destinationFileState.Path, errorMessage); 347Log.LogMessage(MessageImportance.Normal, RetryingAsFileCopy, sourceFileState.Path, destinationFileState.Path, errorMessage); 363Log.LogMessage(MessageImportance.Normal, RetryingAsFileCopy, sourceFileState.Path, destinationFileState.Path, errorMessage); 369Log.LogErrorWithCodeFromResources("Copy.LinkFailed", sourceFileState.Path, destinationFileState.Path); 378Log.LogMessage(MessageImportance.Normal, FileComment, sourceFileState.Path, destinationFileState.Path); 380File.Copy(sourceFileState.Path, destinationFileState.Path, true); 401Log.LogMessage(MessageImportance.Normal, linkComment, sourceFileState.Path, destinationFileState.Path); 403linkCreated = createLink(sourceFileState.Path, destinationFileState.Path, errorMessage); 418Log.LogMessage(MessageImportance.Low, RemovingReadOnlyAttribute, file.Path.OriginalValue); 421File.SetAttributes(file.Path, FileAttributes.Normal); 958sourceFileState.Path.OriginalValue, 959destinationFileState.Path.OriginalValue, 962MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Path.OriginalValue, true); 966MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Path.OriginalValue, false); 969Log.LogError(FileComment, sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue); 979MSBuildEventSource.Log.CopyUpToDateStop(destinationFileState.Path.OriginalValue, true); 988Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, e.Message); 993Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, e.Message); 1033LogAlwaysRetryDiagnosticFromResources("Copy.IOException", e.ToString(), sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, code); 1083Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Path.OriginalValue, 1084destinationFileState.Path.OriginalValue, retries, RetryDelayMilliseconds, e.Message, 1085LockCheck.GetLockedFileMessage(destinationFileState.Path)); 1096Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Path.OriginalValue, 1097destinationFileState.Path.OriginalValue, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Path)); 1109Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Path.OriginalValue, 1110destinationFileState.Path.OriginalValue, retries, RetryDelayMilliseconds, String.Empty /* no details */, 1111LockCheck.GetLockedFileMessage(destinationFileState.Path)); 1120Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Path.OriginalValue, 1121destinationFileState.Path.OriginalValue, Retries, LockCheck.GetLockedFileMessage(destinationFileState.Path)); 1156source.Path = source.Path.GetCanonicalForm(); 1157destination.Path = destination.Path.GetCanonicalForm(); 1158return source.Path == destination.Path;
FileState.cs (2)
252_data = new Lazy<FileDirInfo>(() => new FileDirInfo(Path)); 344_data = new Lazy<FileDirInfo>(() => new FileDirInfo(Path));