Umar Umar - 4 months ago 27
C# Question

Merge all the dependent assemblies to Exe on build

I have been searching from long time about how to merge dlls to project output exe.

I installed Vitevic Assembly Embedder but when the project is built it still leaves some of the dll files as it is.

Since i heared about ILMerge but I could not found any useful support.
I need a tool that can merge all the dlls.


I used FodyWeavers and followed this link. Updated reference targets on line:

It solved my problem. It only produced a single exe file and even merged system dlls in exe by installing a simple package from nuget.