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