Dotfuscator ships with a command line tool called
premark that accepts an assembly as input and outputs the watermark if any. The tool is installed into the same directory as Dotfuscator
|Extracting a Watermark||
premark [options] assembly1[,assembly2, ...] assembly1,...: A list of .NET assemblies or modules. Options: /a Ask for passphrase. /p=passphrase Passphrase to use when decrypting watermark string (none for no encryption).
In addition, there is an MSBuild task defined for extracting a watermark. See PreMark Task.