Skip to content

Instantly share code, notes, and snippets.

@Daniel15
Created April 20, 2014 23:18
Show Gist options
  • Save Daniel15/11127778 to your computer and use it in GitHub Desktop.
Save Daniel15/11127778 to your computer and use it in GitHub Desktop.
ILMerge from MSBuild

Install ILMerge from NuGet Set assembly name to "Blah.original.dll"

Set Post-build event command line to:

"$(SolutionDir)packages\ilmerge.2.13.0307\ilmerge.exe" /keyfile:"$(SolutionDir)Key.snk" /out:"$(TargetDir)$(ProjectName).dll" "$(TargetPath)" "$(SolutionDir)lib\foo.dll" "$(SolutionDir)lib\bar.dll"

This will generate a "Blah.dll" with foo.dll and bar.dll merged into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment