Project DescriptionA small command line utility that analyzes / reports an assembly's dependencies. The utility is capable of extracting any dependencies found in the GAC to a staging area in the file system, providing the ability to make any bin directory x-copy deployable without an MSI
Usage:
Displays usage instructions for the utility
DependencyHunter.exe /?
Output:
--input=VALUE [REQUIRED] The file path of the input assembly
or the directory to scan.
--output=VALUE The path to the directory where DependencyHunter
should copy resolved dependencies if the
/copyRefs flag is set, deploy application files
to if the /deploy flag is set, or generate the
dependency report to if the /output option is
used.
--report=VALUE Redirects the dependency report to the provided
file path. If the supplied file path already
exists, it will be overwritten. EXAMPLE:
/report=dependencies.txt
--reportFormat=VALUE Selects the format for the dependency report.
Possible options are text and xml. text is the
default, and indicates a plain text report
should be created.
--copyRefs When set, this flag will cause all resolved
assemblies to be copied to the target directory,
as specified by the -output option. If the
output option is not set, the current directory
is used.
--noReport When set, this flag will cause DependencyHunter
to suppress the generation of the dependency
report.
--addPath=VALUE The file path of a directory that may contain
referenced assemblies, such as a lib folder. Use
as many times as required.
--sortByName When set, this flag will cause the Dependency
Report to sort dependencies by their names.
--help, -? Show this help text
--pause, -p When set, this flag will cause a pause just
before the program exits (primarily for
debugging)
Analyzes dependencies for the provided DLL and writes the dependency report to the console
DependencyHunter.exe -input=c:\path\to\my.dll
Scans the provided directory for .exe files, and writes a dependency report for each one it finds to the console, sorting dependencies by name and generating an XML version of the dependency report
DependencyHunter.exe -input=c:\path\to\a\bin\debug -sortByName -reportFormat=xml
Analyzes dependencies for the provided exe and writes a report to dependencyReport.txt
DependencyHunter.exe -input=c:\path\to\my.exe -report=dependencyReport.txt
Scans the provided directory for .exe files and copies all found dependencies to c:\staging, without writing a dependency report
DependencyHunter.exe -input=:c\path\to\bin\debug -output=c:\staging -copyRefs -noReport
Scans the provided directory for .exe files and copies all found dependencies to that same directory, essentially forcing a one time copy-local for GAC references
DependencyHunter.exe -input=:c\path\to\bin\debug -output=c:\path\to\bin\debug -copyRefs -noReport