C# merge assemblies

Date: 2019-10-25

https://stackoverflow.com/questions/8077570/how-to-merge-multiple-assemblies-into-one

You have several options:

OR

  • use some tool like SmartAssembly (commercial)
    it can embed and merge among other things (no need to change your source code)

OR

  • code that yourself in less than 10 lines (free but minimal source code change)
    mark all needed dependencies as “embedded resource” – this way they are included in the EXE file… you need to setup an AssemblyResolve handler which at runtime reads from Resources and returns the needed DLLs to the .NET runtime…
27280cookie-checkC# merge assemblies