8 references to HashEncoding
Microsoft.Build.Tasks.Core (8)
FileIO\GetFileHash.cs (6)
75
if (!TryParseHashEncoding(HashEncoding, out
var
encoding))
128
internal static string EncodeHash(
HashEncoding
encoding, byte[] hash)
132
Tasks.
HashEncoding
.Hex => ConversionUtilities.ConvertByteArrayToHex(hash),
133
Tasks.
HashEncoding
.Base64 => Convert.ToBase64String(hash),
138
internal static bool TryParseHashEncoding(string value, out
HashEncoding
encoding)
139
=> Enum.TryParse<
HashEncoding
>(value, /*ignoreCase:*/ true, out encoding);
FileIO\VerifyFileHash.cs (2)
54
if (!GetFileHash.TryParseHashEncoding(HashEncoding, out
var
encoding))
62
var comparison = encoding == Tasks.
HashEncoding
.Hex