How to merge multiple assemblies into one?
You have several options:
- use ILMerge (free)
For howto see here and here
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 anAssemblyResolve
handler which at runtime reads from Resources and returns the needed DLLs to the .NET runtime...
How do I merge multiple .net assemblies into a single assembly?
Try ILMerge.
NuGet package here
How to combine 2 or more c# assemblies into 1 library?
Have a look into ILMerge
ILMerge is a utility for merging multiple .NET assemblies into a
single .NET assembly.
Related Topics
Is Developing in Mono Cross-Platform
Differencebetween an Int and an Integer in Java and C#
How to Turn a Datatable to a CSV
How to Read a Specified Line in a Text File
Making a Simple Ajax Call to Controller in ASP.NET MVC
Inner Join of Datatables in C#
How to Make Something That Catches All 'Unhandled' Exceptions in a Winforms Application
Delegate Keyword VS. Lambda Notation
How to Close a Login Form and Show the Main Form Without My Application Closing
Difference Between Equals/Equals and == Operator
Saving Any File to in the Database, Just Convert It to a Byte Array
Why Isn't There Generic Variance for Classes in C# 4.0
Conversion of a Datetime2 Data Type to a Datetime Data Type Results Out-Of-Range Value
Do Try/Catch Blocks Hurt Performance When Exceptions Are Not Thrown