7 references to PathComparison
Microsoft.Build.Tasks.Core (7)
Copy.cs (2)
1038if (string.Equals(source.Name, destination.Name, FileUtilities.PathComparison)) 1045return string.Equals(source.FileNameFullPath, destination.FileNameFullPath, FileUtilities.PathComparison);
FileUtilities.cs (4)
731if (fileName.EndsWith(extension, PathComparison)) 807StringComparison pathComparison = alwaysIgnoreCase ? StringComparison.OrdinalIgnoreCase : PathComparison; 1116return filename.EndsWith(extension, PathComparison); 1159while (index < splitBase.Length && index < splitPath.Length && splitBase[index].Equals(splitPath[index], PathComparison))
Unzip.cs (1)
174ErrorUtilities.VerifyThrowInvalidOperation(fullDestinationPath.StartsWith(fullDestinationDirectoryPath, FileUtilities.PathComparison), "Unzip.ZipSlipExploit", fullDestinationPath);