This project is read-only.

Embedding dll into exe

Sep 8, 2012 at 6:57 AM



How can I embed the ionic dll into the exe?

I have already looked at the "Emebd DotNetZip into your application", however it seems to require a main class which I do not have.

All I have is just a window application and a namespace.


namespace myprogram
public partial class Form1: Form

public Form1()
{ InitializeComponent(); }

private void button1_click()
  //The rest of my program...


Anybody know how to fix it properly?



Sep 9, 2012 at 3:07 AM

Very simple with ILMerge.

Sep 9, 2012 at 5:55 AM

No I tried that. Program will just crash.