Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,12 @@ public void AddCopy(string source, string destination)

// TODO add retry logic in case of failed copies? MSBuild does this with CopyRetryCount and CopyRetryDelayMilliseconds

// Copy the file
_fileSystem.CopyFile(source, destination, overwrite: true, clearReadOnly: true);
FileInfo destinationFileInfo = new(destination);
if (!destinationFileInfo.Attributes.HasFlag(FileAttributes.ReparsePoint))
{
// Copy the file
_fileSystem.CopyFile(source, destination, overwrite: true, clearReadOnly: true);
}

copyCount++;
}
Expand Down