NAntContrib Help Function Reference file::get-checksum | v0.92 |
Calculates a checksum for a given file and returns it in a hex string.
string file::get-checksum(path, algorithm)
Name | Type | Description |
---|---|---|
path | string | The file for which to calculate a checksum. |
algorithm | string | The name of hash algorithm to use. |
path is a zero-length string, contains only white space, or contains one or more invalid characters.
-or-
algorithm is not a valid name of a hash algorithm.
Displays the MD5 checksum of a file.
<echo>Checksum=${file::get-checksum('Cegeka.exe', 'MD5')}"></echo>