Embedding dll into exe

Sep 8, 2012 at 5:57 AM

Hi,

 

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?

 

Thanks.

Sep 9, 2012 at 2:07 AM

Very simple with ILMerge.

Sep 9, 2012 at 4:55 AM

No I tried that. Program will just crash.