0

I'm trying to make a C# dll that includes all its dependencies in itself. So that the dll, which is actaully a module for another C# program, can be only one file. So is there a way to put a dll inside a dll and then make add a reference to this dll?

  • possible duplicate of [Embedding one dll inside another as an embedded resource and then calling it from my code](http://stackoverflow.com/questions/96732/embedding-one-dll-inside-another-as-an-embedded-resource-and-then-calling-it-fro) – Yurii Apr 14 '14 at 06:03
  • thx (mandatory chars...) – user3496745 Apr 14 '14 at 06:07
  • An alternative approach is to use ILMerge. It creates one dll from a set of assemblies and can be applied to about any application without code changes. – PMF Apr 14 '14 at 06:14

1 Answers1

1

Embedding as a resource and ILMerge was already mentioned in the comments. I'd like to give another alternative: ILRepack. It works like ILMerge but unlike ILMerge is still actively developed.

cremor
  • 6,669
  • 1
  • 29
  • 72