5 instantiations of GetFileHash
Microsoft.Build.Tasks.UnitTests (5)
GetFileHash_Tests.cs (5)
28
GetFileHash task = new
GetFileHash
42
GetFileHash task = new
GetFileHash
56
GetFileHash task = new
GetFileHash
70
GetFileHash task = new
GetFileHash
86
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)
28
GetFileHash
task = new GetFileHash
42
GetFileHash
task = new GetFileHash
56
GetFileHash
task = new GetFileHash
70
GetFileHash
task = new GetFileHash
86
GetFileHash
task = new GetFileHash