5 instantiations of GetFileHash
Microsoft.Build.Tasks.UnitTests (5)
GetFileHash_Tests.cs (5)
29
GetFileHash task = new
GetFileHash
43
GetFileHash task = new
GetFileHash
57
GetFileHash task = new
GetFileHash
71
GetFileHash task = new
GetFileHash
87
GetFileHash task = new
GetFileHash
11 references to GetFileHash
Microsoft.Build.Tasks.Core (6)
FileIO\VerifyFileHash.cs (6)
37
public string HashEncoding { get; set; } =
GetFileHash
._hashEncodingHex;
42
public string Algorithm { get; set; } =
GetFileHash
._defaultFileHashAlgorithm;
54
if (!
GetFileHash
.SupportedAlgorithms.TryGetValue(Algorithm, out var algorithmFactory))
60
if (!
GetFileHash
.TryParseHashEncoding(HashEncoding, out var encoding))
66
byte[] hash =
GetFileHash
.ComputeHash(algorithmFactory, filePath, _cancellationTokenSource.Token);
67
string actualHash =
GetFileHash
.EncodeHash(encoding, hash);
Microsoft.Build.Tasks.UnitTests (5)
GetFileHash_Tests.cs (5)
29
GetFileHash
task = new GetFileHash
43
GetFileHash
task = new GetFileHash
57
GetFileHash
task = new GetFileHash
71
GetFileHash
task = new GetFileHash
87
GetFileHash
task = new GetFileHash