CLI tool to compute the TypeRefHash (TRH) for .NET binaries.
There are multiple options to obtain the TypeRefHasher.
Install the tool with winget. The tool gets added to your PATH
environment variable.
winget install GDATA.TypeRefHasher
Another option is to just download the binary or installer from the GitHub Releases tab
trh.msi
-> Windows x64 Installer (Allows uninstall and adds the tool to yourPATH
)trh.exe
-> Windows x64 (Standalone binary)
Download the binary or installer from the GitHub Releases tab.
trh
-> Linux x64 (Standalone binary)
The usage is as straight forward as possible.
Windows:
> trh.exe file
Linux:
> trh file
In both cases the output is the TRH (example: 1defec485ab3060a9201f35d69cfcdec4b70b84a2b71c83b53795ca30d1ae8be) for the given file or an error message with a description why the hash could not be computed.
Find more information here