Search code examples
c#visual-studio-2010dllexecutablepackaging

How to package dlls in the compiled executable of a C# project in Visual Studio 2010


I have developed a relatively small windows form application using Visual Studio 2010.

When I build a release version of the application I find the executable in bin/release/ along with a bunch of dll files that are required to it's functionning.

My question is the following:

Is there a way for visual studio to compile the application such that the dll files are "packaged" (I think that is the term?) within the executable so that I could distribute the program as a single .exe file?

Thanks!


Solution

  • Try ILMERGE it may use to merge native dll ILMERGE