'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 1:[1]
Try ILMERGE it may use to merge native dll ILMERGE
Solution 2:[2]
Create new setup and deployment project
Create new project in vs2010
File -> New -> Project
a windows will appear
select other project Types --> Setup and Deployment
and select Installshield or visual studio installer -- your choice.
refer msdn about setup and deployment
it will create Distributable executable.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | vikrantx |
