Click here to Skip to main content
15,902,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have develop a Windows Application that will looks like a calculator.. but in that i have used one third party dll file named calc.dll,

now my question is when i compile that project it will create tow file like my Calculator.exe file as well as calc.dll

but i want the out put will be of one file like Calculator.exe and it will contain that dll

i don't want to create a setup project for my project, i simply want to use my calculator by double clicking it...

means that when i compile the project i will get only one file(having both file in int exe and dll) as output
Posted

1 solution

You need to take a look at ILMerge.

Download:

http://www.microsoft.com/download/en/details.aspx?id=17630[^]

CP Article:

Merging .NET assemblies using ILMerge[^]

GUI Tool to make life easier:

http://ilmergegui.codeplex.com/[^]

If you want ILMerge to be part of your build process, you'll need to configure it to run as a Post Build Task of your .exe project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900